An abstract superclass for defining motion-based modifiers for views.
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
UIMotion are responsible for defining the behavior to apply to a view when motion is detected. They do this by overriding the
key method and returning one or more key paths representing the view properties to modify.
This class is abstract and cannot be instantiated directly. You can use the
UIInterpolating class to implement effects or you can subclass and implement your own effects. If you subclass, your subclass must conform to the
NSCoding protocols and must implement the