Initializes and returns an interpolating motion effect object configured for the specific tilt direction.
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The key path of the view that you want to modify. This path must correspond to an animatable property of the view on which this motion effect is applied. For example, to update the
centerproperty of the view, specify the string “center”.
The type of motion to track. You can track horizontal or vertical tilt. For a list of possible values, see
Motion Effect Type
An initialized interpolating motion effect object.