<!--
{
  "availability" : [
    "macOS: 10.15.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TextFieldStyle/squareBorder",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14TextFieldStylePA2A012SquareBordercdE0VRszrlE06squareG0AEvpZ"
  },
  "title" : "squareBorder"
}
-->

# squareBorder

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

```
@export(implementation) static var squareBorder: SquareBorderTextFieldStyle { get }
```

## Discussion

As of macOS 26, text fields no longer have a rectangular border.

---

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)