Finders

  • StackIteratingFinder iterates through the view controllers stack following the search options provided. It simplifies the creation of the finders for a hosting app.

    See more

    Declaration

    Swift

    public protocol StackIteratingFinder : Finder
  • A default implementation of the view controllers finder that searches for a view controller by its name.

    See more

    Declaration

    Swift

    public struct ClassFinder<VC, C> : StackIteratingFinder where VC : UIViewController
  • The Finder that provides the Router a known instance of the UIViewController

    See more

    Declaration

    Swift

    public struct InstanceFinder<VC, C> : Finder where VC : UIViewController
  • Dummy struct used to represent that nothing should be found in a view controller stack and a UIViewController should always be created from scratch. Its only purpose is to provide type safety checks for StepAssembly.

    For example, UIViewController of this step was already loaded and integrated into a stack by a storyboard.

    See more

    Declaration

    Swift

    public struct NilFinder<VC, C> : Finder, NilEntity where VC : UIViewController
  • A default implementation of the finder, that searches for a UIHostingController with a specific View and its Context instance.

    The View should conform to the ContextChecking to be used with this finder.

    See more

    Declaration

    Swift

    @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
    public struct UIHostingControllerWithContextFinder<ContentView> : StackIteratingFinder where ContentView : ContextChecking, ContentView : View