SwiftUIContainerInterfacing

@MainActor
public protocol SwiftUIContainerInterfacing<Content> : ControllerDestinationInterfacing

This protocol represents a controller that serves as a container for a SwiftUI View.

  • The SwiftUI View that is hosted by this controller.

    Declaration

    Swift

    associatedtype Content : SwiftUIHostedInterfacing
  • Reference to the SwiftUI View contained by this controller.

    Declaration

    Swift

    @MainActor
    var swiftUIView: Content { get }
  • The adapter which holds the associated SwiftUI View and presents it in a UIHostingController.

    Declaration

    Swift

    @MainActor
    var adapter: SwiftUIAdapter<Content> { get }