Slide 1

Slide 1 text

Introduction to MVVM for iOS Presented by Aditya Pradana at Engineering Brownbag Session in Oneb1t on Friday, December 18th 2015

Slide 2

Slide 2 text

Typical iOS App MVC Architecture

Slide 3

Slide 3 text

Typical iOS App MVC Architecture Although views and view controllers are technically distinct components, they almost always go hand-in- hand together, paired

Slide 4

Slide 4 text

MVC = Massive View Controller ?

Slide 5

Slide 5 text

What is MVVM? MVVM (Model - View - ViewModel) is another architectural paradigm for GUI applications

Slide 6

Slide 6 text

iOS App MVVM Architecture

Slide 7

Slide 7 text

MVVM Key Points • MVVM is compatible with your existing MVC architecture • MVVM makes your apps more testable • MVVM works best with a binding mechanism

Slide 8

Slide 8 text

Example iOS MVC Model

Slide 9

Slide 9 text

Example iOS MVC ViewController

Slide 10

Slide 10 text

Example iOS MVVM Model

Slide 11

Slide 11 text

Example iOS MVVM ViewModel

Slide 12

Slide 12 text

Example iOS MVVM ViewController

Slide 13

Slide 13 text

Thank You