Contribu)ng to Reac)veCocoa: Coding • Refactoring • New tests • Proposing new operators • Compa5bility with new Swi; versions "Building Fabric.app with Reac6veCocoa" - Javier Soto. RACDC2016 - April 2016 10
Contribu)ng to Reac)veCocoa: Other ways! • Replying to issues • Wri1ng / improving docs • Helping other users • Evangelizing "Building Fabric.app with Reac6veCocoa" - Javier Soto. RACDC2016 - April 2016 11
DataLoadState enum DataLoadState { case Loading case Failed case Loaded(DataType) } "Building Fabric.app with Reac6veCocoa" - Javier Soto. RACDC2016 - April 2016 17
Examples - Consuming Data From a View Model self.viewModel.applications.producer.startWithNext { applicationsLoadState in switch applicationsLoadState { case .Loading: label.text = "Loading..." case .Failed: label.text = "Error loading applications!" case .Loaded(let applications): reloadTableView(applications: applications) } } "Building Fabric.app with Reac6veCocoa" - Javier Soto. RACDC2016 - April 2016 21