Breaking ViewControllers apart with extensions
We're all used to having large ViewController classes that implement multiple delegates for their child views. In Swift you can break each delegate into its own block of code using extensions like this...
import UIKit class MyController: UIViewController { // class specific funcs here } extension MyController : UITableViewDelegate { // table funcs here } extension MyController : UISearchBarDelegate { // search func here }
















