NavigationStackPresentationOptions
public struct NavigationStackPresentationOptions
An options model that configures how a Destination is presented within a navigation stack, either within a NavigationStack in SwiftUI or a UINavigationController in UIKit.
-
Determines whether a Destination should be presented with an animation when added to a navigation stack. Setting this property to false will result in the default system animation not being shown when a Destination is added to a
NavigationStackorUINavigationController.Declaration
Swift
public var shouldAnimate: Bool -
The initializer.
Declaration
Swift
public init(shouldAnimate: Bool? = nil)Parameters
shouldAnimateDetermines whether a Destination should be presented with an animation when added to a navigation stack.
View on GitHub