Skip to content

Instantly share code, notes, and snippets.

@ksmandersen
Created January 18, 2016 17:19
Show Gist options
  • Save ksmandersen/a1a508d3a4db67f711fb to your computer and use it in GitHub Desktop.
Save ksmandersen/a1a508d3a4db67f711fb to your computer and use it in GitHub Desktop.
import UIKit
class GenericViewController: UIViewController {
var contentView: GenericView {
return view as! GenericView
}
init() {
super.init(nibName: nil, bundle: nil)
}
required init?(coder aDecoder: NSCoder) {
fatalError()
}
override func loadView() {
view = GenericView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment