I have a BaseViewController
and I want to inherit from this in a subclass. When I do this the subclass "TestViewController" doesn't appear under the class dropdown in Xcode's interface builder (see below image). Isn't this possible?
class BaseViewController<T: AnyObject> : UIViewController{
var test: T?
override func viewDidLoad() { }
}
class TestViewController : BaseViewController<UIView>{ }
If I just type in the class name then I get a runtime error saying:
Unknown class TestViewController in Interface Builder file
Tried
- Removing references to files and adding them again
- Editing the storyboard using a text editor and adding name to attribute "customClass"