InstanceFinder

public struct InstanceFinder<VC, C> : Finder where VC : UIViewController

The Finder that provides the Router a known instance of the UIViewController

Associated types

  • Declaration

    Swift

    public typealias ViewController = VC
  • Declaration

    Swift

    public typealias Context = C

Properties

  • The UIViewController instance that Finder will provide to the Router

    Declaration

    Swift

    public private(set) weak var instance: VC? { get }

Methods

  • Constructor

    Declaration

    Swift

    public init(instance: VC)

    Parameters

    instance

    The UIViewController instance that Finder should provide to the Router

  • Declaration

    Swift

    public func findViewController(with context: C) throws -> VC?