DefaultContainerAdapterLocator
public struct DefaultContainerAdapterLocator : ContainerAdapterLocator
Default implementation of ContainerAdapterLocator
-
Constructor
Declaration
Swift
public init()
-
Returns the
ContainerAdapter
suitable for theContainerViewController
.For the container view controllers that extend
CustomContainerViewController
it returns the an instance provided inCustomContainerViewController.adapter
property. For the defaultContainerViewController
s likeUINavigationController
,TabBarControllerAdapter
,UISplitViewController
and their subclasses it returns suitable default implementation of theContainerAdapter
.Declaration
Swift
public func getAdapter(for containerViewController: ContainerViewController) throws -> ContainerAdapter
Parameters
containerViewController
The
ContainerViewController
instanceReturn Value
Suitable
ContainerAdapter
instance