ViewDestination
@MainActor
public final class ViewDestination<ViewType, UserInteractionType, DestinationType, ContentType, TabType, InteractorType> : ViewDestinationable where ViewType : ViewDestinationInterfacing, UserInteractionType : UserInteractionTypeable, DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable, InteractorType : InteractorTypeable
extension ViewDestination: Equatable
extension ViewDestination: @preconcurrency CustomStringConvertible
A Destination class whose associated user interface is a SwiftUI View.
This is a generic Destination that can be used to represent most Views in a SwiftUI-based app.
-
A unique identifier.
Declaration
Swift
@MainActor public let id: UUID -
This enum value conforming to
RoutableDestinationsrepresents a specific Destination type.Declaration
Swift
@MainActor public var type: DestinationType { get set } -
The SwiftUI
Viewclass associated with this Destination.Declaration
Swift
@MainActor public var view: ViewType? { get set } -
Declaration
Swift
@MainActor public var internalState: DestinationInternalState<UserInteractionType, DestinationType, ContentType, TabType, InteractorType> { get set } -
The initializer.
Declaration
Swift
@MainActor public init(destinationType: DestinationType, destinationConfigurations: DestinationConfigurations? = nil, navigationConfigurations: NavigationConfigurations? = nil, parentDestination: UUID? = 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 prepareForPresentation() -
Declaration
Swift
nonisolated public static func == (lhs: ViewDestination, rhs: ViewDestination) -> Bool -
Declaration
Swift
@MainActor public var description: String { get }
View on GitHub