<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ButtonBorderShape",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17ButtonBorderShapeV"
  },
  "title" : "ButtonBorderShape"
}
-->

# ButtonBorderShape

A shape used to draw a button’s border.

```
struct ButtonBorderShape
```

## Overview

Use the [`buttonBorderShape(_:)`](/documentation/SwiftUI/View/buttonBorderShape(_:)) view modifier to apply the shape to
bordered buttons within a view hierarchy.

## Topics

### Getting border shapes

[`automatic`](/documentation/SwiftUI/ButtonBorderShape/automatic)

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

[`capsule`](/documentation/SwiftUI/ButtonBorderShape/capsule)

A capsule shape.

[`circle`](/documentation/SwiftUI/ButtonBorderShape/circle)

A circular shape.

[`roundedRectangle`](/documentation/SwiftUI/ButtonBorderShape/roundedRectangle)

A rounded rectangle shape.

[`roundedRectangle(radius:)`](/documentation/SwiftUI/ButtonBorderShape/roundedRectangle(radius:))

A rounded rectangle shape.

## Relationships

### Conforms To

[`InsettableShape`](/documentation/SwiftUI/InsettableShape)

[`Animatable`](/documentation/SwiftUI/Animatable)

[`View`](/documentation/SwiftUI/View)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Copyable`](/documentation/Swift/Copyable)

[`Shape`](/documentation/SwiftUI/Shape)

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)