---
title: "inset(by:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/scrolltransitionconfiguration/threshold/inset(by:)"
---

# inset(by:)

Returns a threshold that is met when the target view is closer to the center of the container by distance. Use negative values to move the threshold away from the center.

## Declaration

```swift
func inset(by distance: Double) -> ScrollTransitionConfiguration.Threshold
```

## See Also

### Modifying the threshold

- [interpolated(towards:amount:)](swiftui/scrolltransitionconfiguration/threshold/interpolated(towards:amount:).md)
