SwiftUIContainerController
@MainActor
public final class SwiftUIContainerController<Content> : UIViewController, SwiftUIContainerInterfacing where Content : SwiftUIHostedInterfacing
A controller that serves as a container for a SwiftUI View
.
-
Declaration
Swift
public typealias InteractorType = Content.InteractorType
-
Declaration
Swift
public typealias UserInteractionType = Content.UserInteractionType
-
Declaration
Swift
public typealias PresentationConfiguration = Content.PresentationConfiguration
-
Declaration
Swift
public typealias DestinationType = PresentationConfiguration.DestinationType
-
Declaration
Swift
public typealias Destination = SwiftUIContainerDestination<Content, PresentationConfiguration>
-
The Destination associated with the contained SwiftUI
View
.Declaration
Swift
@MainActor public var destinationState: SwiftUIHostingState<Content, PresentationConfiguration> { get set }
-
The SwiftUI
View
contained by this controller.Declaration
Swift
@MainActor public var swiftUIView: Content { get }
-
The adapter which holds the associated SwiftUI
View
and presents it in aUIHostingController
.Declaration
Swift
@MainActor public var adapter: SwiftUIAdapter<Content>
-
The initializer.
Declaration
Swift
@MainActor public init(adapter: SwiftUIAdapter<Content>)
Parameters
adapter
The adapter which holds the associated SwiftUI
View
and presents it in aUIHostingController
. -
Declaration
Swift
@MainActor public func cleanupResources()