Earlier this year I mentioned a growing set of source code examples showing how to implement many design patterns in Swift.
Here’s a nice in-depth guide by Vincent Ngo demonstrating how to implement some common design patterns in Swift and providing a nice overview on design patterns, and the possible uses for each specific pattern.
Specifically the tutorial covers the Singleton, Adapter, Decorator, Facade, MVC, Memento and Observer patterns, and in the tutorial you’ll build a simple music app using those patterns.
You can find the tutorial in two parts over on the Ray Wenderlich blog: Part 1, Part 2.
A nice tutorial on design patterns in Swift.
Original article: Tutorial: Design Patterns In Swift – Singleton, MVC, Observer And More
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.