The completion percentage of the animation.

애니메이션의 진행률.

Required.


Declaration

var fractionComplete: CGFloat { get set }

Discussion

The value of this property is 0.0 at the beginning of the animation and 1.0 at the end of the animation. Intermediate values represent progress in the execution of the animation. For example, the value 0.5 indicates that the animation is exactly half way complete.

이 프로퍼티의 값은 애니메이션 시작 부분에서 0.0, 끝 부분에서 1.0이며, 사이 값은 애니메이션 진행률을 나타냅니다. 예를 들어 0.5는 애니메이션이 절반 진행되었음을 나타냅니다.

Assigning a new value to this property causes the animator to update the animation progress to the value you specify. You can use this capability to create interactive animations. For example, you might use a pan gesture recognizer to update the value based on the completion progress of that gesture. You can update the value of this property only while the animator is paused. Changing the value of this property on an inactive animator moves it to the active state.

이 프로퍼티에 새 값을 할당하면 애니메이터가 애니메이션 진행 상황을 지정한 값으로 업데이트합니다. 이 기능을 사용하여 인터랙티브 애니메이션을 만들 수 있습니다. 예를 들어, pan gesture recognizer를 사용하여 제스처의 진행률에 따라 값을 업데이트 할 수 있습니다. 애니메이터를 일시 중지시키고 난 후에 프로퍼티의 값을 업데이트 할 수 있습니다. 비활성 애니메이터에서 이 프로퍼티의 값을 변경하면 활성 상태로 이동합니다.

When defining a custom animator, you may allow values greater than 1.0 or less than 0.0 if you support animations running past their beginning or end points.

커스텀 애니메이터를 만들 때 시작이나 끝 지점을 지나 실행되는 애니메이션은 1.0보다 크거나 0.0보다 작은 값을 넣을 수 있습니다.

https://developer.apple.com/documentation/uikit/uiviewanimating/1649787-fractioncomplete