I have a view controller which has 5 different subviews, these subviews are changed according to some conditions, then there are functions which apply background color and add some minor aesthetics to the views.
I have segregated the functions in the viewcontroller only for views i.e Applying colors,adding views and button touch events etc.
Only for controllers ViewDidLoad, ViewDidAppear etc.
Rest iI call it as model,as as it does some calculations and other stuff. Calculating the constraints and constants for the view. Can anyone suggest me anyway how to incorporate the view,controller controller and model functions in seperateseparate class? I don't like everything crowding up in the same viewcontroller.