Join Scott Gardner for an in-depth discussion in this video Bind collection views: Part 1, part of Reactive Programming in iOS with RxSwift.
- [Voiceover] For this next example I will incorporate…use of an Rx community library, RxDataSources.…It builds upon RxCocoa and our RxSwift…and provides new extensions for handling…more complex table and collection views.…I'm starting out in a single view app…with a UI collection view added to the scene.…Along with an add bar button item on the navigation bar,…and a long press gesture recognizer…added to the collection view,…and there are outlets for all three of these…in the view controller.…
I've also created custom header and cell classes.…Each with a title label for use by the collection view.…As I mentioned, I'm going to use the RxSwift…community library, RxDataSources in this example.…I've already added that Cocoa pod.…So now I'll just import it in the view controller,…and I'll build my project for good measure.…The first thing I'll do is explore…the RxDataSources API a bit by command clicking on it…to go into the generated hair file.…
I won't go over everything here of course,…but I already know that I want to create a collection view…
Learn reactive programming with Reactive Extensions for Swift and iOS by following along with author Scott Gardner. Scott introduces the Reactive Extensions libraries for Swift and Cocoa Touch, and shows how to work with observable sequences, bind user interface and data elements, perform networking operations, debug Rx code, and more.
- Using the Reactive Extensions library
- Working with observable sequences
- Binding UI and data elements
- Binding table and collection views
- Error handling