One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

EmptyAnimatableData

struct · iOS 13.0+ · SDK 27.1

@frozen struct EmptyAnimatableData

An empty type for animatable data. This type is suitable for use as the `animatableData` property of types that do not have any animatable properties.

Members (4)

get · iOS 13.0+

magnitudeSquared

TypeScript
get magnitudeSquared(): number
Swift declaration
var magnitudeSquared: Double { get }

The dot-product of this animatable data instance with itself.

get · iOS 13.0+

zero

TypeScript
static get zero(): EmptyAnimatableData
Swift declaration
static var zero: EmptyAnimatableData { get }

The zero value. Zero is the identity element for addition. For any value, `x + .zero == x` and `.zero + x == x`.

method · iOS 13.0+

scale

TypeScript
scale(rhs: number): void
Swift declaration
mutating func scale(by rhs: Double)

Multiplies each component of this value by the given value.

init · iOS 13.0+

init

TypeScript
static init(): EmptyAnimatableData
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →