Instance Property

isReversed

Required.

A Boolean value indicating whether the animation is running in the reverse direction.

Declaration

var isReversed: Bool { get set }

Discussion

When the value of this property is true, animations run in the reverse direction—that is, view properties animate back to their original values. When the value is false, view properties animate to their intended final values.

When implementing this property, changes should cause the animation to reverse direction. If you allow changes while the animation is running, it is best to pause the animation briefly and then start it again in the opposite direction. Once the animation transitions to the stopped state, you can ignore changes to this property.