Class

UIMotionEffectGroup

A collection of motion effects that you want to apply to a view at the same time.

Declaration

class UIMotionEffectGroup : UIMotionEffect

Overview

This class behaves similarly to the CAAnimationGroup class in Core Animation. The key paths and values returned by each motion effect object are applied simultaneously and with the same timing. Because UIMotionEffectGroup is a subclass of UIMotionEffect, you can treat it like a single motion effect in your code. After setting a value for the motionEffects property, add the group object to one or more of your views.

Topics

Setting the Group Items

var motionEffects: [UIMotionEffect]?

An array of motion effect objects to apply as a group to the view.

Relationships

Inherits From

Conforms To

See Also

View-Based Effects

class UIInterpolatingMotionEffect

An object that maps the horizontal or vertical tilt of a device to values that you specify so that UIKit can apply those values to your views.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software