I can change the class of the view in an UIViewController using the Storyboard like so:
How can I achieve the same effect programmatically? I've tried this:
convenience init() {
print("convenience init")
self.init(nibName: nil, bundle: nil)
self.view = MTKView()
}
But it doesn't work. Seems to change the view for the MTKView, but the frame doesn't resize like it does when doing this by the Storyboard.