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 DestinationType = Content.DestinationType -
Declaration
Swift
public typealias ContentType = Content.ContentType -
Declaration
Swift
public typealias TabType = Content.TabType -
Declaration
Swift
public typealias DestinationState = SwiftUIHostingState<Content, UserInteractionType, DestinationType, ContentType, TabType, InteractorType> -
Declaration
Swift
public typealias Destination = SwiftUIContainerDestination<Content, UserInteractionType, DestinationType, ContentType, TabType, InteractorType> -
The Destination associated with the contained SwiftUI
View.Declaration
Swift
@MainActor public var destinationState: SwiftUIHostingState<Content, UserInteractionType, DestinationType, ContentType, TabType, InteractorType> { get set } -
The SwiftUI
Viewcontained by this controller.Declaration
Swift
@MainActor public var swiftUIView: Content { get } -
The adapter which holds the associated SwiftUI
Viewand presents it in aUIHostingController.Declaration
Swift
@MainActor public var adapter: SwiftUIAdapter<Content> -
The initializer.
Declaration
Swift
@MainActor public init(adapter: SwiftUIAdapter<Content>)Parameters
adapterThe adapter which holds the associated SwiftUI
Viewand presents it in aUIHostingController. -
Undocumented
Declaration
Swift
@MainActor public override func viewDidLoad() -
Declaration
Swift
@MainActor public func cleanupResources()
View on GitHub