---
title: "buttonBorderShape(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/buttonbordershape(_:)"
---

# buttonBorderShape(_:)

Sets the border shape for buttons in this view.

## Declaration

```swift
nonisolated func buttonBorderShape(_ shape: ButtonBorderShape) -> some View

```

## Parameters

- `shape`: The shape to use.

## Discussion

Discussion The border shape is used to draw the platter for a bordered button. The border shape affects buttons of the bordered and borderedProminent styles. note: In macOS 15 and earlier, some border shapes are only applicable to bordered buttons in widgets.

## See Also

### Creating buttons

- [Button](swiftui/button.md)
- [buttonStyle(_:)](swiftui/view/buttonstyle(_:).md)
- [ButtonBorderShape](swiftui/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)
