Binding UICollectionViews

As we mentioned in the last section, we will use a community library in this section. The name of the library is RxDataSources. It is built on top of RxCocoa and RxSwift and provides new extensions for handling more complex tables and collectionViews.

We will create a collectionView with a set of section headers that animates changes to the collectionView, such as adding new sections. RxDataSources provides an API for doing these things reactively. We are starting out in a single-view app with the collectionView added to the scene; you can open the starter project for this section and build on top of it like the previous sections.

As we mentioned, we will use the RxSwift community library—RxDataSourcesin this example, ...

Get Reactive Programming with Swift 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.