NavigatingDestinationInterfacing
@MainActor
public protocol NavigatingDestinationInterfacing : ViewDestinationInterfacing where Self.DestinationState : NavigationDestinationStateable
A protocol representing a SwiftUI View that is associated with a Destination and contains a NavigationStack.
-
backToPreviousDestination(currentDestination:Default implementation) Requests that this user interface’s navigator move to the previous Destination in the navigation path.
Default Implementation
Declaration
Swift
@MainActor func backToPreviousDestination(currentDestination: any ViewDestinationable)Parameters
currentDestinationThe current Destination associated with the interface which is currently presented. This Destination will send the system navigation message.
View on GitHub