Prezentacja wyjaśnia różnice pomiędzy wzorcami MVVM oraz MVC w kontekście iOS'a. Znajduje się w niej analiza dwóch prostych aplikacji: jedna korzysta ze wzorca MVVM, druga MVC
2. 2
z czegoś prosto wyjaśnić - to znaczy, że niewystarczają
Albert Einstein
3. Agenda
Introduction
MVC vs. MVVM:
• Model View Controller
• Model View View-Model
• How does it look on iOS?
Reactive Programming
• Reactive Frameworks
Demo
Summary
3
9. MVC vs MVVM
Is it wise to use an application design pattern other than the one (MVC) recommended
by Apple?
9
YES!!!
• Apple doesn’t provide solution hot to solve problem of Massive View Controller
• Fits really nicely within the MVC pattern
11. MVC vs MVVM
MVVM in iOS:
• „Protocol-Oriented MVVM”: Introduction to Protocol-Oriented MVVM by
NatashaTheRobot
• „MVVM in Swift” by Ash Furrow
• Reactive MVVM
11
15. Summary
• MVC is fully replaceable with MVVM pattern in iOS
• MVVM is my default way I write apps (with protocols and generics)
Recommend:
• http://artsy.github.io/blog/2015/09/24/mvvm-in-swift/
• http://www.sprynthesis.com/2014/12/06/reactivecocoa-mvvm-introduction/
• https://realm.io/news/altconf-scott-gardner-reactive-programming-with-rxswift/
patryk.grabowski@intive.com
15