A collection of motion effects that you want to apply to a view at the same time.
- iOS 7.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
This class behaves similarly to the
CAAnimation class in Core Animation. The key paths and values returned by each motion effect object are applied simultaneously and with the same timing. Because
UIMotion is a subclass of
UIMotion, you can treat it like a single motion effect in your code. After setting a value for the
motion property, add the group object to one or more of your views.