To finish our conversion from part 1, we will need all changes, available here. Collection viewRight now we are using old-fashioned collection view implementation, using delegate and data source. I'll simplify this code
This tutorial will use all pieces of information we gathered from previous posts to refactor existing code to RxSwift. I created a base project. Simple iOS application displaying images in the collection view.
RxCocoa brings UIKit controls and views to the reactive world. We can access them with .rx on view object. Neary all relevant properties of views have their reactive wrapper: alpha, background color, frame,
Working with async tasks using RxSwift is easy and straightforward. For me, the hardest thing was to grasp the concept of the flatMap operator. FlatMap - general ideaFirst, let us focus on flatMap
RxSwift provides many ways to combine and merge two or more observables together. Sometimes more than one thing has to go right to get the desired result. Starter projectWe will reuse the starter