SwiftUIContainerDestination
@MainActor
public final class SwiftUIContainerDestination<Content, PresentationConfiguration> : SwiftUIContainerDestinationable where Content : SwiftUIHostedInterfacing, PresentationConfiguration : DestinationPresentationConfiguring
A Destination representing a SwiftUIContainerController
instance which presents a SwiftUI View
within UIKit.
-
Declaration
Swift
public typealias InteractorType = Content.InteractorType
-
Declaration
Swift
public typealias PresentationConfiguration = PresentationConfiguration
-
Declaration
Swift
public typealias DestinationType = PresentationConfiguration.DestinationType
-
Declaration
Swift
public typealias TabType = PresentationConfiguration.TabType
-
Declaration
Swift
public typealias ContentType = PresentationConfiguration.ContentType
-
Declaration
Swift
public typealias UserInteractionType = Content.UserInteractionType
-
A type of
AppDestinationConfigurations
which handles Destination presentation configurations.Declaration
Swift
public typealias DestinationConfigurations = AppDestinationConfigurations<UserInteractionType, PresentationConfiguration>
-
Declaration
Swift
public typealias ControllerType = SwiftUIContainerController<Content>
-
The type of
View
contained within this Destination.Declaration
Swift
public typealias ViewType = Content
-
Declaration
Swift
@MainActor public let id: UUID
-
Declaration
Swift
@MainActor public let type: DestinationType
-
Declaration
Swift
@MainActor public var controller: SwiftUIContainerController<Content>?
-
Declaration
Swift
@MainActor public var internalState: DestinationInternalState<InteractorType, UserInteractionType, PresentationType, PresentationConfiguration>
-
This
ViewFlow
object manages the SwiftUIView
presented by this Destination.Declaration
Swift
@MainActor public var viewFlow: ViewFlow<DestinationType, TabType, ContentType>?
-
The initializer.
Declaration
Swift
@MainActor public init(destinationType: DestinationType, flow: ViewFlow<DestinationType, TabType, ContentType>? = nil, destinationConfigurations: DestinationConfigurations?, navigationConfigurations: NavigationConfigurations?, parentDestination: UUID? = nil)
Parameters
destinationType
The type of Destination.
destinationConfigurations
The Destination presentation configurations associated with this Destination.
navigationConfigurations
The system navigation events associated with this Destination.
parentDestination
The identifier of the parent Destination.
-
Declaration
Swift
@MainActor public func buildInterfaceActions(presentationClosure: @escaping (PresentationConfiguration) -> Void)
-
Declaration
Swift
@MainActor public func presentDestination(presentation: DestinationPresentation<DestinationType, ContentType, TabType>)
-
Declaration
Swift
@MainActor public func cleanupResources()
-
Declaration
Swift
@MainActor public func prepareForPresentation()