SwiftUIContainerDestination
@MainActor
public final class SwiftUIContainerDestination<ViewType, EventType, DestinationType, ContentType, TabType, InteractorType> : SwiftUIContainerDestinationable where ViewType : SwiftUIHostedInterfacing, EventType : EventTypeable, DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable, InteractorType : InteractorTypeable
A Destination representing a SwiftUIContainerController instance which presents a SwiftUI View within UIKit.
-
A type of
AppDestinationConfigurationswhich handles Destination presentation configurations.Declaration
Swift
public typealias DestinationConfigurations = AppDestinationConfigurations<EventType, 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<EventType, DestinationType, ContentType, TabType, InteractorType> -
Declaration
Swift
@MainActor public var stateModel: (any StateModeling<SwiftUIContainerDestination<ViewType, EventType, DestinationType, ContentType, TabType, InteractorType>>)? -
init(destinationType:flow: destinationConfigurations: navigationConfigurations: parentDestination: state: ) The initializer.
Declaration
Swift
@MainActor public init(destinationType: DestinationType, flow: ViewFlow<DestinationType, TabType, ContentType>? = nil, destinationConfigurations: DestinationConfigurations?, navigationConfigurations: NavigationConfigurations?, parentDestination: UUID? = nil, state: (any StateModeling<SwiftUIContainerDestination<ViewType, EventType, DestinationType, ContentType, TabType, InteractorType>>)? = nil)Parameters
destinationTypeThe type of Destination.
destinationConfigurationsThe Destination presentation configurations associated with this Destination.
navigationConfigurationsThe system navigation events associated with this Destination.
parentDestinationThe 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()
View on GitHub