Filters

Hide filters
Platform
Content Type
Difficulty

All Tutorials · 5 Results

Contained in: Combine: Asynchronous Programming With Swift core data
iOS & Swift

Chapter in Combine: Asynchronous Programming With Swift

In Practice: Building a Complete App

…chapter, the pièce de résistance, you’ll build a complete app that applies what you’ve learned — but the learning is not done yet! Core Data in Combine anyone…
iOS & Swift

Chapter in Combine: Asynchronous Programming With Swift

Hello, Combine!

Swift ecosystem to design and write asynchronous code. Apple has integrated Combine into its other frameworks too, so Timer, NotificationCenter and core frameworks like Core Data already speak its language. Luckily, Combine is also very easy to integrate into your own code. Finally, last but definitely not least, Apple designed…
iOS & Swift

Chapter in Combine: Asynchronous Programming With Swift

Time Manipulation Operators

Timing is everything. The core idea behind reactive programming is to model asynchronous event flow over time. In this respect, the Combine framework provides a range of operators that allow you to deal with time. In particular, how sequences react to and transform values over time…
iOS & Swift

Chapter in Combine: Asynchronous Programming With Swift

Publishers & Subscribers

…that you’ve learned a few of Combine’s basic concepts, it’s time to jump in and play with two of Combine’s core components — publishers and subscribers. In this chapter, you’ll experiment with various ways to create publishers and subscribe them so that you feel right…
iOS & Swift

Chapter in Combine: Asynchronous Programming With Swift

Custom Publishers & Handling Backpressure

…subscriber. It will keep running until the subscriber cancels the subscription — or you deallocate the subscription. You’re now ready to code the core of your timer, which emits events to the subscriber. Still inside the if body, add this code: // 22 source.setEventHandler { [weak self] in // 23 guard let self…