I'm having a problem with the app I am developing right now : one of my UIViewController
s is huge ( around 3000 lines ).
For now, I created extensions of this view controller to handle delegate methods in order to "split" this controller. For instance, I have my main view controller called XYZMainViewController
and as this controller is the delegate of a UITextField
, I created an extension XYZMainViewControllerTextFieldDelegateExtension.swift
in which I manage UITextFieldDelegate
methods.
It's still pretty dirty to do that this way. I'm wondering what would be a good practice to handle huge controllers like this one.