duration The length of time the animation spans, in seconds. Declaration@MainActor @preconcurrency var duration: TimeInterval { get } See AlsoTiming animation playbackspeedclocktime