- Name two ways to implement simple animations in iOS.
a) CoreGraphics
and UIKit Dynamics.
b) UIViewPropertyAnimator
and UIView.animate
.
c) UIViewControllerTransitioning
and UIPercentageDrivenAnimation
.
- 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.
- Name an advantage of
UIViewPropertyAnimator
.
a) Better performance. b) More animation capabilities. c) Easier to start, pause, and interact with.
- 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:)
.
- 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...