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 View
s in a SwiftUI-based app.
-
A unique identifier.
Declaration
Swift
@MainActor public let id: UUID
-
This enum value conforming to
RoutableDestinations
represents a specific Destination type.Declaration
Swift
@MainActor public var type: DestinationType { get set }
-
The SwiftUI
View
class 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
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 prepareForPresentation()
-
Declaration
Swift
nonisolated public static func == (lhs: ViewDestination, rhs: ViewDestination) -> Bool
-
Declaration
Swift
@MainActor public var description: String { get }