---
title: inverse
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/unitcurve/inverse
---

# inverse

Returns a copy of the curve with its x and y components swapped.

## Declaration

```swift
var inverse: UnitCurve { get }
```

## Discussion

Discussion The inverse can be used to solve a curve in reverse: given a known output (y) value, the corresponding input (x) value can be found by using inverse: let curve = UnitCurve.easeInOut

/// The input time for which an easeInOut curve returns 0.6. let inputTime = curve.inverse.evaluate(at: 0.6)
