TL;DR: There is a nice way to reuse the code of view controller’s life cycle’s methods. It comes in handy when an OOP hierarchy can’t seem to help accomplish such refactoring. It is called View Controller Life Cycle Behavior. Fill free to check out an example right away.

#swift #ios #uiviewcontroller

UIViewController Lifecycle Behavior
1.95 GEEK