Protocol

UIViewImplicitlyAnimating

An interface for modifying an animation while it is running.

Declaration

protocol UIViewImplicitlyAnimating

Overview

Animator objects used in interruptible view controller transitions adopt the UIViewImplicitlyAnimating protocol to modify in-flight transition animations. This protocol also conforms to the UIViewAnimating protocol, which specifies methods for starting and stopping animations and for updating their state.

The UIViewPropertyAnimator class adopts this protocol and implements all of its methods. You can adopt this protocol in your own classes to implement custom animator objects. When adopting this protocol, it is recommended that you implement all of the methods.

Topics

Modifying Animations

func addAnimations(() -> Void)

Adds the specified animation block to the animator.

func addAnimations(() -> Void, delayFactor: CGFloat)

Adds the specified animation block to the animator with a delay.

func addCompletion((UIViewAnimatingPosition) -> Void)

Adds the specified completion block to the animator.

Relationships

Inherits From

Conforming Types