The current progress of the animation.
SDK
- macOS 10.4+
Framework
- App
Kit
Declaration
var currentProgress: NSAnimation.Progress { get set }
Discussion
This property contains the completion percentage of the animation. Valid values are in the range 0
to 1
, where 0
represents the beginning of the animation and 1
represents the end of the animation.
Changing the value of this property adjusts the progress of a running animation. Setting this property to a value less than 0
sets the value of the property to 0
. Similarly, specifying a value greater than 1
changes the value of the property to 1
. The NSAnimation
class updates the value of this property during the animation. To perform additional tasks at specific progress points, use the delegate’s animation(_:
method.