# rect.inset(by:)

{% tabs %}
{% tab title="🌀 CGRect" %}
```swift
// 2022.02.08

import SwiftUI

extension CGRect {
    /// `rect.inset(by: width)`
    public func inset(by dx: CGFloat) -> CGRect {
        insetBy(dx: dx, dy: dx)
    }
}
```
{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}
