---
title: ButtonBorderShape
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/buttonbordershape
---

# ButtonBorderShape

A shape used to draw a button’s border.

## Declaration

```swift
struct ButtonBorderShape
```

## Overview

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

## Topics

### Getting border shapes

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

## Relationships

### Conforms To

- [Animatable](swiftui/animatable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [InsettableShape](swiftui/insettableshape.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Shape](swiftui/shape.md)
- [View](swiftui/view.md)

## See Also

### Creating buttons

- [Button](swiftui/button.md)
- [buttonStyle(_:)](swiftui/view/buttonstyle(_:).md)
- [buttonBorderShape(_:)](swiftui/view/buttonbordershape(_:).md)
- [buttonRepeatBehavior(_:)](swiftui/view/buttonrepeatbehavior(_:).md)
- [ButtonRepeatBehavior](swiftui/buttonrepeatbehavior.md)
- [buttonRepeatBehavior](swiftui/environmentvalues/buttonrepeatbehavior.md)
- [buttonSizing(_:)](swiftui/view/buttonsizing(_:).md)
- [ButtonSizing](swiftui/buttonsizing.md)
- [ButtonRole](swiftui/buttonrole.md)
