PresentingFinder
public struct PresentingFinder<C> : Finder
PresentingFinder
returns the presenting UIViewController
of the topmost one in current stack.
-
A starting point in the
UIViewController
s stack- topmost: Start from the topmost
UIViewController
- custom: Start from the custom
UIViewController
Declaration
Swift
public enum StartingPoint
- topmost: Start from the topmost
-
WindowProvider
instance.Declaration
Swift
public let windowProvider: WindowProvider
-
A starting point in the
UIViewController
s stackDeclaration
Swift
public let startingPoint: StartingPoint
-
Constructor
Declaration
Swift
public init(windowProvider: WindowProvider = RouteComposerDefaults.shared.windowProvider, startingPoint: StartingPoint = .topmost)
Parameters
windowProvider
WindowProvider
instance.startingPoint
-
Declaration
Swift
public func findViewController(with context: C) throws -> UIViewController?