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
NavigationStack
orUINavigationController
.Declaration
Swift
public var shouldAnimate: Bool
-
The initializer.
Declaration
Swift
public init(shouldAnimate: Bool? = nil)
Parameters
shouldAnimate
Determines whether a Destination should be presented with an animation when added to a navigation stack.