App Architecture: iOS Application Design Patterns in Swift
By Matt Gallagher, Chris Eidhof, Florian Kugler
Language: English
Category: Ebook - Computer/Internet
Categories: Computer/Internet
Uploader:
Uploaded At: 2019-01-07 12:22:43
swift, programming, ios, architecture, 1719030251
Description
This book explains a range of application design patterns and their implementation techniques using a single example app, fully implemented in five design patterns.
Instead of advocating for any particular pattern, we lay out the problems all architectures are trying to address: constructing the app's components, communicating between the view and the model, and handling non-model state. We show high-level solutions to these problems and break them down to the level of implementation for five different design patterns - two commonly used and three more experimental.
The common architectures are Model-View-Controller and Model-View-ViewModel + Coordinator. In addition to explaining these patterns conceptually and on the implementation level, we discuss solutions to commonly encountered problems, like massive view controllers. On the experimental side we explain View-State-Driven Model-View-Controller, ModelAdapter-ViewBinder, and The Elm Architecture. By examining these experimental patterns, we extract valuable lessons that can be applied to other patterns and to existing code bases.
Book Contents
-
Why Architecture?
Understand the common problems all patterns are trying to solve. -
Common Design Patterns
Learn what common patterns such as MVC and MVVM are all about. -
Experimental Architectures
Learn from experimental architectures like View State-Driven MVC and The Elm Architecture. -
Networking
How Networking fits into common design patterns. -
Implementation Techniques
Understand how each pattern is implemented at the code level. -
In-Depth Comparisons
Understand the commonalities, differences, and trade-offs between architectures. -
Take-Aways for Any Code Base
Learn lessons from each architecture that make any code base better. -
Common Refactorings
Techniques to factor out shared code and deal with large view controllers. -
Complete Implementations
The accompanying voice-notes sample app is fully implemented in five architectures.
1st Edition
Updated 5/14/2018
- Paperback: 230 pages
- Publisher: CreateSpace Independent Publishing Platform; 1 edition (May 13, 2018)
- Language: English
- ISBN-10: 1719030251
- ISBN-13: 978-1719030250