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

# inset(by:)

Returns self inset by amount.

## Declaration

```swift
nonisolated func inset(by amount: CGFloat) -> Self.InsetShape
```

## See Also

### Setting the inset

- [InsetShape](swiftui/insettableshape/insetshape.md)
