BMViewWithViewControllerAndViewModel
public protocol BMViewWithViewControllerAndViewModel : BMViewWithViewModel
A BMViewWithViewControllerAndViewModel is a BMViewWithViewModel view managed by a UIViewController.
This “managing” automatically calls the configure, style and layout phases.
In addition, the controller set the viewModel of the view, therefore invoking the update at least once before the view is actually displayed.
This view is extended with helpers allowing to access the UINavigationBar, UINavigationItem, UIViewController from the view when present.
-
viewControllerDefault implementationThe
UIViewControllermanaging the view.Default Implementation
Syntactic sugar to access the
UIViewControllermanaging this UIView.Declaration
Swift
var viewController: UIViewController? { get set } -
navigationBarExtension methodA shortcut to access
UINavigationControllerfrom the view when available.Declaration
Swift
var navigationBar: UINavigationBar? { get } -
navigationItemExtension methodA shortcut to access
UINavigationItemfrom the view when available.Declaration
Swift
var navigationItem: UINavigationItem? { get }
View on GitHub
BMViewWithViewControllerAndViewModel Protocol Reference