Questions

  1. Name two ways to implement simple animations in iOS.

a) CoreGraphics and UIKit Dynamics.
b) UIViewPropertyAnimator and UIView.animate.
c) UIViewControllerTransitioning and UIPercentageDrivenAnimation.

  1. What does the damping property do in a spring animation?

a) It is used for the bounciness of the animation.
b) It sets up the initial velocity of the animation.
c) It determines the initial acceleration of the animation.

  1. Name an advantage of UIViewPropertyAnimator.

a) Better performance.
b) More animation capabilities.
c) Easier to start, pause, and interact with.

  1. What is a difference between implementing UIViewControllerTransiting for interactive and non-interactive transitions?

a) The pan gesture-recognizer.
b) You must use UIViewPropertyAnimator.
c) You must implement interruptibleAnimator(using:).

  1. How do you prevent a view from showing out-of-bounds contents?

a) By setting clipToBounds to true on the view.
b) By setting clipToBounds to true on the view controller.
c) By setting overflowHidden to true on the view.

  1. Is it possible to add animations to a running property animator?

a) No.
b) Yes.