Chapter 4

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

b) UIViewPropertyAnimator and UIView.animate.

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

a) It is used for the bounciness of the animation.

  1. Name an advantage of UIViewPropertyAnimator.

c) Easier to start, pause, and interact with.

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

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.

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

b) Yes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset