SelectorViewController

The SelectorViewController is a subclass of BaseViewController and is themed with SelectorViewControllerStyle. This view controller handles SelectorModel.

UI structure

The root structure is composed of a StackView that contains the following elements.

Name Description
ActionableButton A UI component similar to a native UIButton with some default styling configuration.

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:

Subclassing

When subclassing and instantiating your new view controller, a ThemeRegistry and a corresponding UIModel are required for the super constructor.

class CustomFormViewController: SelectorViewController {
    init(model: SelectorModel, themeRegistry: ThemeRegistry) {
        super.init(model: model, themeRegistry: themeRegistry)
        // Your implementation
    }
  
  	// Your custom implementation
}