RxSwift on iOS

RxSwift on iOS

Slides from talk at dotSwift 2017. More discussion about the sample code at http://rx-marin.com

Bbb75c4dd2e17a7e3114c730ec7144d0?s=128

Marin Todorov

January 27, 2017
Tweet

Transcript

  1. RxSwift on iOS dotSwift, Paris Marin Todorov mt@realm.io

  2. mt@realm.io !

  3. mt@realm.io "

  4. mt@realm.io NSNotificationCenter closures delegates Grand Central Dispatch Selector(:) Dependency Injection

  5. Array<String> mt@realm.io 0 first 1 second 2 third

  6. mt@realm.io 0 first 1 second 2 third 3 fourth ⛅

  7. mt@realm.io 0 first 1 second 2 third 3 fourth

  8. mt@realm.io 0 first 1 second 2 third Image Credit: NASA

    Goddard Space Flight Center
  9. mt@realm.io Observable<Array<String>> 0 first 1 second 2 third 0 first

    1 second 2 third 3 fourth 0 first 1 second 2 third 3 fourth 4 fifth
  10. mt@realm.io 0 first 1 second 2 third 0 first 1

    second 2 third 3 fourth 0 first 1 second 2 third 3 fourth 4 fifth
  11. mt@realm.io Observable<Array<String>> 0 first 1 second 2 third 0 first

    1 second 2 third 3 fourth 0 first 1 second 2 third 3 fourth 4 fifth
  12. mt@realm.io Observable<Int> 130 301 17

  13. mt@realm.io Observable<ClickData> ClickData { pt: CGPoint(10, 200) nrOfClicks: 1 }

    ClickData { pt: CGPoint(20, 160) nrOfClicks: 1 } ClickData { pt: CGPoint(100, 13) nrOfClicks: 2 }
  14. mt@realm.io marin Observable<String> filter length > 2 Observable<String> debounce interval

    > 0.5s Observable<String> flatMapLatest Any Observable<NSData> map Array<Repo> Observable<Array<Repo>> map URLRequest() Observable<URLRequest> subscribe or bindTo orEmpty
  15. mt@realm.io

  16. mt@realm.io

  17. mt@realm.io

  18. RxSwift 1. Sync-like async code 2. With a functional aspect

    3. Cross platform, tried and tested framework mt@realm.io
  19. We’re hiring mt@realm.io • Distributed Systems Eng. • JavaScript Engineer

    • Product Manager • Sales Engineer • Account Executive • and much more! realm.io/jobs
  20. mt@realm.io Sample Code & Credits http://rx-marin.com Thanks: 
 ɾAsh Furrow

    ɾFlorent Pillet ɾJunior Bontognali ɾKrunoslav Zaher
  21. mt@realm.io Questions? Marin Todorov mt@realm.io www.realm.io @icanzilb