struct SpatialAnimation
Swift
struct SpatialAnimation
Not documented.
Sources/LavaUI/Spatial.swift:118
Constructors
init(duration: Double = 0.22, curve: AnimationCurve = .easeOut, animatesPosition: Bool = true)
Not documented.
Sources/LavaUI/Spatial.swift:126
Properties
var animatesPosition: Bool
When false, world x jumps to the new pose and only y/z, rotation, and scale interpolate. A bookshelf can keep the focused cover planted at the camera centre instead of sliding the whole shelf.
Sources/LavaUI/Spatial.swift:124
var curve: AnimationCurve
Not documented.
Sources/LavaUI/Spatial.swift:120
var duration: Double
Not documented.
Sources/LavaUI/Spatial.swift:119
Methods
static func smooth(duration: Double = 0.22, curve: AnimationCurve = .easeOut) -> SpatialAnimation
Not documented.
Sources/LavaUI/Spatial.swift:142
func snappingPosition() -> SpatialAnimation
Position.x jumps; lift, turn, and scale still ease.
Sources/LavaUI/Spatial.swift:136
static func spring(response: Double = 0.32, dampingFraction: Double = 0.72) -> SpatialAnimation
A physically shaped hover/selection transition. response controls
how quickly the spring reacts; dampingFraction controls its bounce.
Sources/LavaUI/Spatial.swift:150