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

# inset(by:)

## Declaration

```swift
func inset(by insets: UIEdgeInsets) -> CGRect
```
