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

# capsule

A capsule shape.

## Declaration

```swift
static let capsule: ButtonBorderShape
```

## Discussion

Discussion Use the buttonBorderShape(_:) view modifier to apply the shape to bordered buttons within a view hierarchy. note: This has no effect on non-widget system buttons in macOS.

## See Also

### Getting border shapes

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