NavigatingControllerDestinationable
@MainActor
public protocol NavigatingControllerDestinationable<DestinationType, ContentType, TabType> : GroupedControllerDestinationable where Self.ControllerType : UINavigationController
This protocol represents a Destination whose interface is a UINavigationController
.
-
navigateBackInStack(presentationID:
Default implementation) Removes the current Destination and navigates to the previous Destination in the
UINavigationController
stack, if one exists.Default Implementation
Declaration
Swift
@MainActor func navigateBackInStack(presentationID: UUID?)
Parameters
previousPresentationID
An optional unique identifier of the previous Destination.
-
supportsIgnoringCurrentDestinationStatus
Extension methodDetermines whether this Destination supports the
shouldSetDestinationAsCurrent
parameter of theaddChild
method. If this Destination should ignore requests to not make added children the current Destination, this property should be set tofalse
. ForNavigatingControllerDestinationable
-conforming classes, the default isfalse
.Declaration
Swift
@MainActor var supportsIgnoringCurrentDestinationStatus: Bool { get }
Return Value
Returns whether the current Destination status should be ignored.
-
Declaration
Swift
@MainActor func addChild(childDestination: any Destinationable<DestinationType, ContentType, TabType>, shouldSetDestinationAsCurrent: Bool? = true, shouldAnimate: Bool? = true)
-
replaceChild(currentID:
Extension methodwith: ) Undocumented
Declaration
Swift
@MainActor func replaceChild(currentID: UUID, with newDestination: any Destinationable<DestinationType, ContentType, TabType>)
-
prepareForPresentation()
Extension methodDeclaration
Swift
@MainActor func prepareForPresentation()