3. What is RxSwift
- Multi-platform API called Rx
- Asynchronous programming
- Event sequences
- Composable operators
- Сombination of the best ideas from the Observer
pattern, the Iterator pattern, and functional
programming
4. Misconceptions
- You must be a functional programming wizard
- It’s all or nothing
- It’s too slow for mobile development
5. Asynchronous code
show / hide
user input
select element
synchronization
network data
portrait / landscape
update storage
tap
6. Complexity of async code
- States, shared states
- Side effects
- Combining, transforming, filtering async operations
26. RxCocoa specific Traits
Driver
- Can't error out
- Observe occurs on main scheduler
- Shares side effects
(shareReplayLatestWhileConnected)
27. RxCocoa specific Traits
ControlProperty / ControlEvent
- it never fails
- shareReplay(1) behavior
- complete sequence on control being deallocated
- it never errors out
- it delivers events on MainScheduler.instance