Learn how to affect the way in which components come into view.
- Apple News Format
- Apple News API
An animation is an effect, such as a fade-in, that's applied to an individual component. Apple News Format has these animations for components:
AppearAnimation. Causes the component to simply appear.
FadeInAnimation. Causes the component to fade into view.
MoveInAnimation. Causes the component to move into view from the left or right side of the screen.
ScaleFadeAnimation. Causes the component to fade into view and scale up.
An animation is different from a behavior. An animation occurs only once each time the user views the article, while a behavior is persistent and always in effect as long as the user is viewing the article. See About Component Behaviors.
You can apply a combination of animations and behaviors to a
section component by using a scene. See Adding a Scene to a Chapter or a Section Header.