Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MVVM + Coordinators + RxSwift

Sunshinejr
October 23, 2016

MVVM + Coordinators + RxSwift

Slides from my talk at Mobilization'16.

Sunshinejr

October 23, 2016
Tweet

More Decks by Sunshinejr

Other Decks in Programming

Transcript

  1. MVVM +
    Coordinators +
    RxSwift =
    sunshinejr
    thesunshinejr

    View Slide

  2. MVC
    View Model
    Update Update
    User
    Interactions
    Notify
    Controller
    2

    View Slide

  3. MVVM
    View Model
    Data 

    bindings
    Data 

    processing
    3
    ViewModel

    View Slide

  4. Coordinators
    App
    Coordinator
    Register
    Account
    Coordinator
    Login
    Coordinator
    Forgot
    Password
    Coordinator
    registerButton
    Clicked()
    loginButton

    Clicked()
    forgotPassword
    ButtonClicked()
    4

    View Slide

  5. RxSwift
    5
    ReactiveCocoa ReactiveSwift
    Bond
    Interstellar

    View Slide

  6. Observer pattern is 

    AWESOME

    View Slide

  7. Demo

    View Slide

  8. Thanks! Questions?
    sunshinejr
    thesunshinejr
    https://github.com/sunshinejr/Kittygram
    Code from slides at:
    Soroush Khanlou’s talk on Coordinators @NSSpain’15:
    https://vimeo.com/144116310
    Flexible usage of Moya & Stubbing responses:
    https://github.com/sunshinejr/FlexibleMoya
    Esteban Torres’ talk about MVVM + RxSwift + DataControllers @iOScon’16:
    https://skillsmatter.com/skillscasts/7863-mvvm-rxswift-and-datacontrollers

    View Slide