Skip to content

Instantly share code, notes, and snippets.

@kuotinyen
Created December 21, 2018 09:55
Show Gist options
  • Save kuotinyen/4a1859d40b2fc8acb4569be45ad68605 to your computer and use it in GitHub Desktop.
Save kuotinyen/4a1859d40b2fc8acb4569be45ad68605 to your computer and use it in GitHub Desktop.
a base viewController for setup views.

Extension

class BaseVC: UIViewController {

    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        setupViews()
    }
    
    func setupViews() {
        
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment