TransitionOptions
public struct TransitionOptions
TransitionOptions specifies transition customization points defined at the point of triggering a transition.
You can use TransitionOptions to define whether or not a transition should be animated.
Note
It might be extended in the future to enable more advanced customization options.-
Specifies whether or not the transition should be animated.
Declaration
Swift
public let animated: Bool
-
Creates transition options on the basis of whether or not it should be animated.
Note
Specifying
true
to enable animations does not necessarily lead to an animated transition, if the transition does not support it.Declaration
Swift
public init(animated: Bool)
Parameters
animated
Whether or not the animation should be animated.