A Swift Playground explaining the concepts of the new Combine framework
This playground will help you to get started with Combine - Apple Developer Documentation.
Included in this playground
The playground is a paged playground and is built up in several chapters
- What is Combine?
- Publishers & Subscribers
- Rules of subscriptions
- Foundation and Combine
- @Published property and bindings
- Memory management explained with
- Flatmap and matching error types
- Combining Publishers
- Future and Promises
Publisherand UIKit extensions
More to come!
Playgrounds require Xcode beta 2 and up
Xcode beta 1 didn't support using Combine in playgrounds. For this you need at least Xcode beta 2. MacOS Catalina is not required.
Example of a playground page
Some interesting resources regarding Combine.