generate(with:)
Creates an animation resource from a definition.
Declaration
@MainActor @preconcurrency static func generate(with definition: any AnimationDefinition) throws -> AnimationResourceParameters
- 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.