PKGInstantiatableController
public protocol PKGInstantiatableController
This protocol defines an instantiatable controller from its code construction.
-
This is the controller creation point. In this function you should create a controller from code. DO NOT CALL DIRECTLY this function to create the controller. You should call
instantiate(with:)!!Declaration
Swift
static func create() -> UIViewController & PKGControllerProtocol -
shouldWrapInNavigationControllerDefault implementationIf true, the controller previously created is wrapped in a NavigationController. False otherwise. The default implementation returns false.
Default Implementation
Declaration
Swift
static var shouldWrapInNavigationController: Bool { get } -
configure(selfController:Default implementation) This function enables you to configure the controller. The default implementation is empty.
Default Implementation
Declaration
Swift
static func configure(selfController: UIViewController)Parameters
selfControllerthe controller previously created. If
shouldWrapInNavigationControllerreturns false,selfControlleris a NavigationController. -
instantiate(with:Extension method) Instantiate this controller. You can provide a package to transfer data between this controller and next controller.
Declaration
Swift
public static func instantiate(with package: Package? = nil) -> UIViewControllerParameters
packagethe package containing data.
View on GitHub
Install in Dash
PKGInstantiatableController Protocol Reference