Child View Controllers
If you’re finding your UIViewControllers are getting large and unmanageable, and have too many responsibilities, splitting them out into Child UIViewControllers is a great way to go.
If you’re not sure how to do that, I find these resources really useful:
- Container View Controllers on Use Your Loaf, if you prefer using Storyboards.
- Child View Controllers on Swift By Sundell, if you write your views in code.
- And of course, the obligatory link to Hacking With Swift's article on the topic.
Published on 1 February 2020