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.

  • 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

    currentDestination

    The current Destination associated with the interface which is currently presented. This Destination will send the system navigation message.