SwiftUIContainerInterfacing
@MainActor
public protocol SwiftUIContainerInterfacing<Content> : ControllerDestinationInterfacing
This protocol represents a controller that serves as a container for a SwiftUI View.
-
The SwiftUI
Viewthat is hosted by this controller.Declaration
Swift
associatedtype Content : SwiftUIHostedInterfacing -
Reference to the SwiftUI
Viewcontained by this controller.Declaration
Swift
@MainActor var swiftUIView: Content { get } -
The adapter which holds the associated SwiftUI
Viewand presents it in aUIHostingController.Declaration
Swift
@MainActor var adapter: SwiftUIAdapter<Content> { get }
View on GitHub