One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

AnimationTimingFunction

struct · iOS 13.0+ · SDK 27.1

struct AnimationTimingFunction

The pacing of an animation transition. Use an animation timing function to control the pace of an animation transition when you call one of an entity’s animated move methods, like ``Entity/move(to:relativeTo:duration:timingFunction:)-905k``. If you omit a timing function from the call, the method uses the ``AnimationTimingFunction/default`` timing function.

Members (6)

static · iOS 13.0+

cubicBezier

TypeScript
static cubicBezier(controlPoint1: SDKHandle, controlPoint2: SDKHandle): AnimationTimingFunction
Swift declaration
static func cubicBezier(controlPoint1: SIMD2<Float>, controlPoint2: SIMD2<Float>) -> AnimationTimingFunction

Creates a timing function that accelerates and then decelerates towards the target value with the cubic bezier shape specified by two control points. - Parameters: - controlPoint1: The first control point for the cubic bezier function. - controlPoint2: The second control point for the cubic bezier function. - Returns: The cubic bezier timing function.

get · iOS 13.0+

easeIn

TypeScript
static get easeIn(): AnimationTimingFunction
Swift declaration
static var easeIn: AnimationTimingFunction { get }

A timing function that produces a gradual starting transition.

get · iOS 13.0+

linear

TypeScript
static get linear(): AnimationTimingFunction
Swift declaration
static var linear: AnimationTimingFunction { get }

A timing function that produces a linear transition.

get · iOS 13.0+

default

TypeScript
static get default(): AnimationTimingFunction
Swift declaration
static var `default`: AnimationTimingFunction { get }

A timing function that produces the default curve for the transition.

get · iOS 13.0+

easeOut

TypeScript
static get easeOut(): AnimationTimingFunction
Swift declaration
static var easeOut: AnimationTimingFunction { get }

A timing function that produces a gradual ending transition.

get · iOS 13.0+

easeInOut

TypeScript
static get easeInOut(): AnimationTimingFunction
Swift declaration
static var easeInOut: AnimationTimingFunction { get }

A timing function that produces a gradual starting and ending transition.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →