Swift By Sundell – Model Controllers

This is a great post about Model controllers. Upon reading it I realize that I’ve done this for many years, to try and keep things encapsulated. 

https://www.swiftbysundell.com/posts/model-controllers-in-swift

I’ve been slowly rewriting my Birthdays app in Swift, for no real reason except to see how little code I could write now to reproduce when I wrote 9 years ago in Objective C.

I had been putting a lot of logic in the “Person” class I made. Looking at my old code I had a Person class, and a PeopleController. Not sure why I made that distinction. 🙂

 

Birthdays: View on App Store