7 ms·
This[1] video with Andy Matuschak helps with refactoring these “Mega” controllers. This[2] article also is good when it comes to breaking down controllers into
by Pulcinella 8y ago
This[1] video with Andy Matuschak helps with refactoring these “Mega” controllers. This[2] article also is good when it comes to breaking down controllers into smaller pieces.
I will admit it’s a hard problem for me. Putting everything into one view controller is so easy and makes certain problems go away. e.g. Storyboards are a lot easier to deal with when their outlets are in the massive view controller. Custom UIviews with storyboards are a huge pain to get working with interface builder.
[1] https://academy.realm.io/posts/andy-matuschak-refactor-mega-controller/ https://academy.realm.io/posts/andy-matuschak-refactor-mega-...
[2] https://www.smashingmagazine.com/2016/05/better-architecture-for-ios-apps-model-view-controller-pattern/ https://www.smashingmagazine.com/2016/05/better-architecture...