How to make custom controller for View in iOS
Issue #318
I do UI in code, and usually separate between View and ViewController.
1 | class ProfileView: UIView {} |
But in places where using UIViewController and manage their view controller containment hierarchy is not desired, then we can roll out a normal object to act as the controller.
1 | class ProfileController { |
If the name Controller sounds confusing with UIViewController
, I usually use Handler
, which contains other Handler
to handle logic for view