---
title: roundedRectangle
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/buttonbordershape/roundedrectangle
---

# roundedRectangle

A rounded rectangle shape.

## Declaration

```swift
static let roundedRectangle: ButtonBorderShape
```

## Discussion

Discussion Use the buttonBorderShape(_:) view modifier to apply the shape to bordered buttons within a view hierarchy.

## See Also

### Getting border shapes

- [automatic](swiftui/buttonbordershape/automatic.md)
- [capsule](swiftui/buttonbordershape/capsule.md)
- [circle](swiftui/buttonbordershape/circle.md)
- [roundedRectangle(radius:)](swiftui/buttonbordershape/roundedrectangle(radius:).md)
