I have a Storyboard named CustomComponents.storyboard
and I had designed BaseViewController
in Storyboard. For example, I set backgroundColor
of BaseViewController
to .green
in Interface Builder. I inherit RootViewController
from BaseViewController
. I expect the backgroundColor
of RootViewController
to be .green
.
This is my RootViewController
class RootViewController: BaseViewController {
}
and this is my BaseViewController
class BaseViewController: UIViewController {
}
both the classes are empty and I have just set the backgroundColor
in IB.
But, I see white background when I run the app. But, when the color is set programmatically in BaseViewController
, green background colour is applied to RootViewController
as expected.
What am I missing to inherit BaseViewController
which is designed in Storyboard? Basically, I would like to design my BaseViewController
in Storyboard. What am I doing wrong?