NavigatingViewDestinationable
@MainActor
public protocol NavigatingViewDestinationable<PresentationConfiguration> : GroupedDestinationable, ViewDestinationable where Self.ViewType : NavigatingDestinationInterfacing
This protocol represents a type of Destination which manages a SwiftUI NavigationStack
.
-
navigateBackInStack(previousPresentationID:
Default implementation) Removes the current Destination and navigates to the previous Destination in the stack, if one exists.
Default Implementation
Declaration
Swift
@MainActor func navigateBackInStack(previousPresentationID: UUID?)
Parameters
previousPresentationID
An optional unique identifier of the previous Destination.
-
navigator()
Default implementationReturns the navigator which manages the
NavigationStack
.Default Implementation
Declaration
Swift
@MainActor func navigator() -> (any DestinationPathNavigating)?
-
supportsIgnoringCurrentDestinationStatus
Extension methodDeclaration
Swift
@MainActor var supportsIgnoringCurrentDestinationStatus: Bool { get }
-
Declaration
Swift
@MainActor func addChild(childDestination: any Destinationable<PresentationConfiguration>, shouldSetDestinationAsCurrent: Bool? = true, shouldAnimate: Bool? = true)
-
replaceChild(currentID:
Extension methodwith: ) Undocumented
Declaration
Swift
@MainActor func replaceChild(currentID: UUID, with newDestination: any Destinationable<PresentationConfiguration>)
-
removeChild(identifier:
Extension method) Undocumented
Declaration
Swift
@MainActor func removeChild(identifier: UUID)