UIHostingControllerWithContextFinder

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

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.

Associated types

  • Declaration

    Swift

    public typealias ViewController = UIHostingController<ContentView>
  • Declaration

    Swift

    public typealias Context = ContentView.Context

Properties

Methods