---
title: UIInterpolatingMotionEffect
framework: uikit
role: symbol
role_heading: Class
path: uikit/uiinterpolatingmotioneffect
---

# 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.

## Declaration

```swift
@MainActor class UIInterpolatingMotionEffect
```

## Overview

Overview You use this class to determine the amount of tilt along a single axis to apply to a view. After creating an instance of this class, you must assign appropriate values to the minimumRelativeValue and maximumRelativeValue properties. As the user moves the device, the motion effect object translates the fixed offset values returned by the system (which are in the range -1 to 1) to the range of values you specified. UIKit then applies the translated values to any target views.

## Topics

### Initializing a motion effect

- [init(keyPath:type:)](uikit/uiinterpolatingmotioneffect/init(keypath:type:).md)
- [init(coder:)](uikit/uiinterpolatingmotioneffect/init(coder:).md)

### Accessing the motion attributes

- [keyPath](uikit/uiinterpolatingmotioneffect/keypath.md)
- [type](uikit/uiinterpolatingmotioneffect/type.md)
- [minimumRelativeValue](uikit/uiinterpolatingmotioneffect/minimumrelativevalue.md)
- [maximumRelativeValue](uikit/uiinterpolatingmotioneffect/maximumrelativevalue.md)

### Constants

- [UIInterpolatingMotionEffect.EffectType](uikit/uiinterpolatingmotioneffect/effecttype.md)

## Relationships

### Inherits From

- [UIMotionEffect](uikit/uimotioneffect.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### View-based effects

- [UIMotionEffectGroup](uikit/uimotioneffectgroup.md)
