The angular resistance for the behavior’s dynamic items.
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Valid range is
CGFLOAT_MAX. The greater the value, the greater the angular damping and the faster rotation slows to a stop.
Configuring a Dynamic Item Behavior
var friction: CGFloat
The linear resistance for the behavior’s dynamic items when two slide against each other.
var resistance: CGFloat
The linear resistance for the behavior’s dynamic items, which reduces their linear velocity over time.
var isAnchored: Bool
A Boolean value indicating whether the item is anchored to its current position.