SwiftUIContainerDestination
@MainActor
public final class SwiftUIContainerDestination<ViewType, UserInteractionType, DestinationType, ContentType, TabType, InteractorType> : SwiftUIContainerDestinationable where ViewType : SwiftUIHostedInterfacing, UserInteractionType : UserInteractionTypeable, DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable, InteractorType : InteractorTypeable
A Destination representing a SwiftUIContainerController
instance which presents a SwiftUI View
within UIKit.
-
A type of
AppDestinationConfigurations
which handles Destination presentation configurations.Declaration
Swift
public typealias DestinationConfigurations = AppDestinationConfigurations<UserInteractionType, DestinationType, ContentType, TabType>
-
Declaration
Swift
public typealias ControllerType = SwiftUIContainerController<ViewType>
-
Declaration
Swift
@MainActor public let id: UUID
-
Declaration
Swift
@MainActor public let type: DestinationType
-
Declaration
Swift
@MainActor public var controller: SwiftUIContainerController<ViewType>?
-
Declaration
Swift
@MainActor public var internalState: DestinationInternalState<UserInteractionType, DestinationType, ContentType, TabType, InteractorType>
-
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 (DestinationPresentation<DestinationType, ContentType, TabType>) -> Void)
-
Declaration
Swift
@MainActor public func presentDestination(presentation: DestinationPresentation<DestinationType, ContentType, TabType>)
-
Declaration
Swift
@MainActor public func cleanupResources()
-
Declaration
Swift
@MainActor public func prepareForPresentation()