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

# TextInputBorderShape

A shape used to draw the border of a text input control.

```
struct TextInputBorderShape
```

## Topics

### Getting border shape options

[`static var automatic: TextInputBorderShape`](/documentation/SwiftUI/TextInputBorderShape/automatic)

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

[`static var capsule: TextInputBorderShape`](/documentation/SwiftUI/TextInputBorderShape/capsule)

A capsule shape.

[`static var roundedRectangle: TextInputBorderShape`](/documentation/SwiftUI/TextInputBorderShape/roundedRectangle)

A rounded rectangle shape.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)