RouteComposerDefaults
public final class RouteComposerDefaults
Default configuration for all the instances in RouteComposer
.
NB: If you are going to provide your own defaults, make sure that RouteComposerDefaults.configureWith(...)
is called
before the instantiation of any other RouteComposer
‘s instances. AppDelegate
is probably the best place for it.
-
Singleton access.
Declaration
Swift
public static var shared: RouteComposerDefaults
-
Default
ContainerAdapterLocator
instance.Declaration
Swift
public private(set) var containerAdapterLocator: ContainerAdapterLocator { get }
-
Default
StackIterator
instance.Declaration
Swift
public private(set) var stackIterator: StackIterator { get }
-
Default
WindowProvider
instance.Declaration
Swift
public private(set) var windowProvider: WindowProvider { get }
-
Default configuration for all the instances in
RouteComposer
.NB: If you are going to provide your own defaults, make sure that
RouteComposerDefaults.configureWith(...)
is called before the instantiation of any otherRouteComposer
‘s instances.AppDelegate
is probably the best place for it.Declaration
Swift
public class func configureWith(logger: Logger? = DefaultLogger(.warnings), windowProvider: WindowProvider = KeyWindowProvider(), containerAdapterLocator: ContainerAdapterLocator = DefaultContainerAdapterLocator(), stackIterator: StackIterator? = nil)
Parameters
logger
Default
Logger
instance.windowProvider
Default
WindowProvider
instance.containerAdapterLocator
Default
ContainerAdapterLocator
instance.stackIterator
Default
StackIterator
instance.