<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.0.0 - 27.0.0",
    "macOS: 10.15.0 - 27.0.0",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TextFieldStyle/roundedBorder",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14TextFieldStylePA2A013RoundedBordercdE0VRszrlE07roundedG0AEvpZ"
  },
  "title" : "roundedBorder"
}
-->

# roundedBorder

A text field style with a system-defined rounded border.

```
@export(implementation) static var roundedBorder: RoundedBorderTextFieldStyle { get }
```

## Discussion

Use [`textFieldStyle(_:)`](/documentation/SwiftUI/View/textFieldStyle(_:)) to apply the
[`bordered`](/documentation/SwiftUI/TextFieldStyle/bordered) style with
[`textInputBorderShape(_:)`](/documentation/SwiftUI/View/textInputBorderShape(_:)) to apply the
[`roundedRectangle`](/documentation/SwiftUI/TextInputBorderShape/roundedRectangle) shape instead.

---

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)