ProblemViewController
The ProblemViewController
is a subclass of BaseViewController
and is themed with ProblemViewControllerStyle
. This view controller handles ProblemModel
.
UI structure
There is no root structure.
Modifying the UI structure
It is possible to remove or add any elements in the root structure.
To remove an existing element, invoke removeFromSuperview()
for the selected element.
To add a new view, invoke one of the following methods:
insertView(_ view: UIView, aboveView: UIView)
insertView(_ view: UIView, belowView: UIView)
Subclassing
When subclassing and instantiating your new view controller, a ThemeRegistry
and a corresponding UIModel are required for the super constructor.
class CustomFormViewController: ProblemViewController {
init(model: ProblemModel, themeRegistry: ThemeRegistry) {
super.init(model: model, themeRegistry: themeRegistry)
// Your implementation
}
// Your custom implementation
}