SwiftUIContainerDestination
@MainActor
public final class SwiftUIContainerDestination<Content, PresentationConfiguration> : ControllerDestinationable 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: ControllerType?
-
Declaration
Swift
@MainActor public var parentDestinationID: UUID?
-
Declaration
Swift
@MainActor public var destinationConfigurations: DestinationConfigurations?
-
Declaration
Swift
@MainActor public var systemNavigationConfigurations: NavigationConfigurations?
-
Declaration
Swift
@MainActor public var interactors: [InteractorType : any Interactable]
-
Declaration
Swift
@MainActor public var interfaceActions: [UserInteractionType : InterfaceAction<UserInteractionType, DestinationType, ContentType>]
-
Declaration
Swift
@MainActor public var systemNavigationActions: [SystemNavigationType : InterfaceAction<SystemNavigationType, DestinationType, ContentType>]
-
Declaration
Swift
@MainActor public var interactorAssistants: [UserInteractionType : any InteractorAssisting<SwiftUIContainerDestination<Content, PresentationConfiguration>>]
-
Declaration
Swift
@MainActor public var isSystemNavigating: Bool
-
The initializer.
Declaration
Swift
@MainActor public init(destinationType: DestinationType, 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 cleanupResources()