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

RxSwift + MVVM

RxSwift + MVVM

Reactive Swift Meetup at Wantedly

Yosuke Ishikawa

April 13, 2016
Tweet

More Decks by Yosuke Ishikawa

Other Decks in Technology

Transcript

  1. c l a s s T w e e t

    V i e w : U I V i e w { . . . f u n c b i n d ( ) { v i e w . l i k e B u t t o n . r x _ t a p . b i n d T o ( v i e w M o d e l . l i k e T r i g g e r ) . a d d D i s p o s a b l e T o ( d i s p o s e B a g ) v i e w M o d e l . l i k e d . b i n d T o ( v i e w . l i k e B u t t o n . r x _ s e l e c t e d ) . a d d D i s p o s a b l e T o ( d i s p o s e B a g ) } }
  2. f i n a l c l a s s

    G l o b a l O b s e r v a b l e s { s t a t i c l e t l i k e d T w e e t = P u b l i s h S u b j e c t < T w e e t > ( ) }