Other Protocols
The following protocols are available globally.
-
Represents any action that has to be applied to the
See moreUIViewController
after it has been built (eg: push to navigation stack, present modally, push to tab, etc)Declaration
Swift
public protocol AbstractAction
-
Provides universal properties and methods of the
See moreContainerViewController
instance.Declaration
Swift
public protocol ConcreteContainerAdapter : ContainerAdapter
-
Custom
ContainerViewController
s created outside of the library should extend this protocol, soDefaultContainerAdapterLocator
could provide theirContainerAdapter
to theDefaultRouter
and other library’s instances when needed.NB: If you want to substitute the
ContainerAdapter
for the container view controllers that are handled by library such asUINavigationController
you 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
public protocol CustomContainerViewController : ContainerViewController
-
Provides universal properties and methods of the
ContainerViewController
instance.ContainerViewController
s 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
,UITabBarController
and 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
public protocol ContainerAdapter
-
Provides
See moreContainerAdapter
instance.Declaration
Swift
public protocol ContainerAdapterLocator
-
A helper protocol to the
See moreContainerFactory
protocol. If a container does not need to deal with the children view controller creation,SimpleContainerFactory
will handle integration of the children view controllers.Declaration
Swift
public protocol SimpleContainerFactory : ContainerFactory
-
See moreStackIterator
protocolDeclaration
Swift
public protocol StackIterator
-
Provides
See moreUIWindow
Declaration
Swift
public protocol WindowProvider
-
Helper instance used to update the stack of
See moreUIViewController
sDeclaration
Swift
public protocol StackPresentationHandler
-
The Protocol that explains to the library that entity should be ignored.
Declaration
Swift
public protocol NilEntity