Contents

generate(with:)

Creates an animation resource from a definition.

Declaration

@MainActor @preconcurrency static func generate(with definition: any AnimationDefinition) throws -> AnimationResource

Parameters

  • definition:

    The configuration of a timeframe and visual semantics from which to generate an animation resource.

Return Value

An animation resource that shares the configuration of the definition.

See Also

Creating an animation resource