Other Protocols
The following protocols are available globally.
-
Represents any action that has to be applied to the
See moreUIViewControllerafter it has been built (eg: push to navigation stack, present modally, push to tab, etc)Declaration
Swift
@MainActor public protocol AbstractAction -
Provides universal properties and methods of the
See moreContainerViewControllerinstance.Declaration
Swift
@MainActor public protocol ConcreteContainerAdapter : ContainerAdapter -
Custom
ContainerViewControllers created outside of the library should extend this protocol, soDefaultContainerAdapterLocatorcould provide theirContainerAdapterto theDefaultRouterand other library’s instances when needed.NB: If you want to substitute the
ContainerAdapterfor the container view controllers that are handled by library such asUINavigationControlleryou may create the extensions for such container view controllers in your project.
See morepublic extension UINavigationController: CustomContainerViewController { var adapter: ContainerAdapter { return CustomNavigationAdapter(with: self) } }Declaration
Swift
@MainActor public protocol CustomContainerViewController : ContainerViewController -
Provides universal properties and methods of the
ContainerViewControllerinstance.ContainerViewControllers are different from the simple ones in that they can contain child view controllers which are also containers or simple ones. These view controllers are available out of the box:UINavigationController,UITabBarControllerand so on, but there can be custom ones created as well.All the container view controller have the following properties:
- The list of all the view controllers that they contain.
- One or more view controllers are currently visible.
- They can make one of these view controllers visible.
- They can replace all of their contained view controllers.
Declaration
Swift
@MainActor public protocol ContainerAdapter -
Provides
See moreContainerAdapterinstance.Declaration
Swift
@MainActor public protocol ContainerAdapterLocator -
A helper protocol to the
See moreContainerFactoryprotocol. If a container does not need to deal with the children view controller creation,SimpleContainerFactorywill handle integration of the children view controllers.Declaration
Swift
@MainActor public protocol SimpleContainerFactory : ContainerFactory -
See moreStackIteratorprotocolDeclaration
Swift
@MainActor public protocol StackIterator -
Provides
See moreUIWindowDeclaration
Swift
@MainActor public protocol WindowProvider -
Helper instance used to update the stack of
See moreUIViewControllersDeclaration
Swift
@MainActor public protocol StackPresentationHandler -
The Protocol that explains to the library that entity should be ignored.
Declaration
Swift
public protocol NilEntity
Other Protocols Reference