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
AnyCancellable
- Flatmap and matching error types
- Combining Publishers
- Future and Promises
- Custom
Publisher
and UIKit extensions - Debugging publishers
More to come!
Requirements
- Xcode 11 beta 4
Example of a playground page
Interesting resources
Some interesting resources regarding Combine.
- Getting started with the Combine framework in Swift
- Creating a custom Combine Publisher to extend UIKit
- Combine debugging using operators in Swift
- RxSwift to Apples Combine
- WWDC 2019 s721 - Combine in practice
- WWDC 2019 s722 - Introducing Combine
- Open Source insight of Combine
Interesting Frameworks
Some interesting frameworks regarding Combine.