The context of the current state-processing update.
On This Page
@frozen struct Transaction
Use a transaction to pass an animation between views in a view hierarchy.
The root transaction for a state change comes from the binding that changed, plus any global values set by calling withTransaction(_:_:) or withAnimation(_:_:).
Creates a transaction.
Creates a transaction and assigns its animation property.
var animation: Animation?
The animation, if any, associated with the current state change.
var disablesAnimations: Bool
A Boolean value that indicates whether views should disable animations.
var isContinuous: Bool
A Boolean value that indicates whether the transaction originated from an action that produces a sequence of values.
func withTransaction<Result>(Transaction, () -> Result) -> Result
Executes a closure with the specified transaction and returns the result.
An interface for a stored variable that updates an external property of a view.