get animatableData(): AnimatablePair<number, AnimatablePair<number, AnimatablePair<number, number>>>
Swift declaration
var animatableData: EdgeInsets.AnimatableData { get set }
The data to animate.
SwiftUI reads this property to capture the current vector
representation of the animatable state, and writes it back
on each animation frame with an interpolated value. The
default implementation returns ``EmptyAnimatableData``,
meaning nothing is animated.
Use the ``Animatable()`` macro to synthesize this
property automatically. Implement it by hand only when
you need custom interpolation logic such as clamping,
normalization, or mapping to a derived value.
set · iOS 13.0+
animatableData
TypeScript
set animatableData(value: AnimatablePair<number, AnimatablePair<number, AnimatablePair<number, number>>>)
Swift declaration
var animatableData: EdgeInsets.AnimatableData { get set }
The data to animate.
SwiftUI reads this property to capture the current vector
representation of the animatable state, and writes it back
on each animation frame with an interpolated value. The
default implementation returns ``EmptyAnimatableData``,
meaning nothing is animated.
Use the ``Animatable()`` macro to synthesize this
property automatically. Implement it by hand only when
you need custom interpolation logic such as clamping,
normalization, or mapping to a derived value.
Returns an inset that has been modified by the corner sizes in the
specified edges. When two corner insets diverge in their values for
the specified edge, the maximum inset value will be used. For example,
when the top edge is specified, the top inset will be adjusted by
the larger of the two heights from the top leading and trailing corner
inset sizes.
- Parameters:
- corners: The corner sizes to add to the insets.
- edges: The set of corner edges which should be added to the insets.