Intro to Object-Oriented Design in Swift: Part 2/2

Learn the basics of object-oriented design in Swift. In this second part, you’ll learn about polymorphism, initialization, and some common design patterns for dealing with objects. By Ray Fix.

Leave a rating/review
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where To Go From Here?

In one single app, you’ve created a clean, object-oriented application using basic objects, inheritance, MVC design, polymorphism, as well as singleton and factory methods. You can review the source code of the finished project.

Apple describes how to adopt a few common Cocoa design patterns in Adopting Cocoa Design Patterns.

For more sample code, there's a work-in-progress Design Patterns in Swift Github project trying to catalog how many common software design patterns can be implemented in Swift. Check it out and see if you can come up with better implementations yourself!

If you’ve got questions, ask away in the comments below!

Contributors

Ray Fix

Author

Over 300 content creators. Join our team.