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

# automatic

A shape that defers to the system to determine an appropriate shape for the given context and platform.

## Declaration

```swift
static let automatic: ButtonBorderShape
```

## Discussion

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

## See Also

### Getting border shapes

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