Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AvdLee/CombineSwiftPlayground
A Swift playground explaining the concepts of the new Combine framework
https://github.com/AvdLee/CombineSwiftPlayground
Last synced: about 1 month ago
JSON representation
A Swift playground explaining the concepts of the new Combine framework
- Host: GitHub
- URL: https://github.com/AvdLee/CombineSwiftPlayground
- Owner: AvdLee
- License: mit
- Created: 2019-06-12T15:56:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-01T12:19:11.000Z (10 months ago)
- Last Synced: 2024-10-20T21:22:48.862Z (about 2 months ago)
- Language: Swift
- Size: 1.01 MB
- Stars: 1,160
- Watchers: 33
- Forks: 88
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-combine - Combine Playground
- awesome - CombineSwiftPlayground - A Swift playground explaining the concepts of the new Combine framework (etc)
- awesome - CombineSwiftPlayground - A Swift playground explaining the concepts of the new Combine framework (etc)
README
# A Swift Playground explaining the concepts of the new Combine framework
This playground will help you to get started with [Combine - Apple Developer Documentation](https://developer.apple.com/documentation/combine).## 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 publishersMore to come!
## Requirements
- Xcode 11 beta 4
## Example of a playground page
![](Assets/flatmap_playground_example.png)## Interesting resources
Some interesting resources regarding Combine.- [Getting started with the Combine framework in Swift](https://www.avanderlee.com/swift/combine/)
- [Creating a custom Combine Publisher to extend UIKit](https://www.avanderlee.com/swift/custom-combine-publisher/)
- [Combine debugging using operators in Swift](https://www.avanderlee.com/swift/combine-swift/)
- [RxSwift to Apples Combine](https://medium.com/gett-engineering/rxswift-to-apples-combine-cheat-sheet-e9ce32b14c5b)
- [WWDC 2019 s721 - Combine in practice](https://developer.apple.com/videos/play/wwdc2019/721/)
- [WWDC 2019 s722 - Introducing Combine](https://developer.apple.com/videos/play/wwdc2019/722/)
- [Open Source insight of Combine](https://github.com/broadwaylamb/OpenCombine)## Interesting Frameworks
Some interesting frameworks regarding Combine.- [Hover - Async network layer with Combine](https://github.com/onurhuseyincantay/Hover)
- [Conbini - Custom `Publisher`s, operators, and `Subscriber`s](https://github.com/dehesa/Conbini)