One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

VectorArithmetic

protocol · iOS 13.0+ · SDK 27.1

protocol VectorArithmetic : AdditiveArithmetic

A type that can serve as the animatable data of an animatable type. `VectorArithmetic` extends the `AdditiveArithmetic` protocol with scalar multiplication and a way to query the vector magnitude of the value. Use this type as the `animatableData` associated type of a type that conforms to the ``Animatable`` protocol.

Members (1)

method · iOS 13.0+

scaled

Swift declaration
@export(implementation) func scaled(by rhs: Double) -> Self

Returns a value with each component of this value multiplied by the given value.

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

VectorArithmetic.interpolate(towards:amount:)

The iOS SDK compiler rejected this binding: member 'interpolate' cannot be used on value of type 'any VectorArithmetic'; consider using a generic constraint instead [#ExistentialMemberAccess]

VectorArithmetic.interpolated(towards:amount:)

The iOS SDK compiler rejected this binding: member 'interpolated' cannot be used on value of type 'any VectorArithmetic'; consider using a generic constraint instead [#ExistentialMemberAccess]

All SwiftUICore types →