Top Banner
MVVM + iOS Carlos Vinícius Real @cviniciusreal
17

MVVM on iOS

Jan 09, 2017

Download

Technology

Carlos zapata
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MVVM on iOS

MVVM + iOS

Carlos Vinícius Real @cviniciusreal

Page 2: MVVM on iOS

MVC

Page 3: MVVM on iOS

Apple’s MVC

Page 4: MVVM on iOS

Massive View Controllers

Page 5: MVVM on iOS
Page 6: MVVM on iOS

MVVM

Page 7: MVVM on iOS

MVVM

• Easy to test

• Flexible

• Test coverage

• “Easy" to implement

Page 8: MVVM on iOS

Binding

• Protocols

• KVO

• Third-party libraries

Page 9: MVVM on iOS

MVVM Sample

• Protocols

• RxSwift

Page 10: MVVM on iOS

Unit tests

Page 11: MVVM on iOS

Code

Page 12: MVVM on iOS

RxSwift

• Reactive Programming

• Unit tests

Page 13: MVVM on iOS

and now? How should I start?

Page 14: MVVM on iOS
Page 15: MVVM on iOS

Libraries

• RxSwift

• ReactiveCocoa

• SwiftBond

Page 16: MVVM on iOS

References• https://realm.io/news/doios-natasha-murashev-

protocol-oriented-mvvm/

• https://medium.com/ios-os-x-development/ios-architecture-patterns-ecba4c38de52#.16m6lp4ep

• http://www.pangers.com/blog/2016/3/1/unit-testing-with-rxswift

Page 17: MVVM on iOS

Thank you!

@cviniciusreal