April 2017
Intermediate to advanced
316 pages
9h 33m
English
In our application, we need to manage states to keep the State management code as declarative as possible. We will use a library named Delta (https://github.com/conqueror/Delta/blob/master/documentation/getting-started.md).
Delta will be used along with ReactiveCocoa and ReactiveSwift to manage states and State changes reactively. The code is as follows:
import ReactiveCocoa import ReactiveSwift import Delta extension MutableProperty: Delta.ObservablePropertyType { public typealias ValueType = Value }
In the preceding code, we extend the ReactiveSwift library's MutableProperty by conforming to Delta.ObservablePropertyType.
The ObservablePropertyType protocol must be implemented by the State that is held by Store. To use a custom ...
Read now
Unlock full access