One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Angle

struct · iOS 13.0+ · SDK 27.1

@frozen struct Angle

A geometric angle whose value you access in either radians or degrees.

Members (12)

get · iOS 13.0+

animatableData

TypeScript
get animatableData(): number
Swift declaration
var animatableData: Double { 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: number)
Swift declaration
var animatableData: Double { 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.

get · iOS 13.0+

zero

TypeScript
static get zero(): Angle
Swift declaration
static var zero: Angle { get }
init · iOS 13.0+

init

TypeScript
static initDegrees(degrees: number): Angle
Swift declaration
init(degrees: Double)
get · iOS 13.0+

degrees

TypeScript
get degrees(): number
Swift declaration
var degrees: Double { get set }
set · iOS 13.0+

degrees

TypeScript
set degrees(value: number)
Swift declaration
var degrees: Double { get set }
static · iOS 13.0+

degrees

TypeScript
static degrees91512(degrees: number): Angle
Swift declaration
static func degrees(_ degrees: Double) -> Angle
init · iOS 13.0+

init

TypeScript
static initRadians(radians: number): Angle
Swift declaration
init(radians: Double)
get · iOS 13.0+

radians

TypeScript
get radians(): number
Swift declaration
var radians: Double
set · iOS 13.0+

radians

TypeScript
set radians(value: number)
Swift declaration
var radians: Double
static · iOS 13.0+

radians

TypeScript
static radians25777(radians: number): Angle
Swift declaration
static func radians(_ radians: Double) -> Angle
init · iOS 13.0+

init

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

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →