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