O'Reilly logo

Reactive Programming with Swift 4 by Navdeep Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required