DefaultContainerAdapterLocator
@MainActor
public struct DefaultContainerAdapterLocator : ContainerAdapterLocator
Default implementation of ContainerAdapterLocator
-
Constructor
Declaration
Swift
public nonisolated init() -
Returns the
ContainerAdaptersuitable for theContainerViewController.For the container view controllers that extend
CustomContainerViewControllerit returns the an instance provided inCustomContainerViewController.adapterproperty. For the defaultContainerViewControllers likeUINavigationController,TabBarControllerAdapter,UISplitViewControllerand their subclasses it returns suitable default implementation of theContainerAdapter.Declaration
Swift
@MainActor public func getAdapter(for containerViewController: ContainerViewController) throws -> ContainerAdapterParameters
containerViewControllerThe
ContainerViewControllerinstanceReturn Value
Suitable
ContainerAdapterinstance