<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextField/bezelStyle-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextField(py)bezelStyle"
  },
  "title" : "bezelStyle"
}
-->

# bezelStyle

The text field’s bezel style, square or rounded.

```
var bezelStyle: NSTextField.BezelStyle { get set }
```

## Discussion

To enable a bezel for a text field, set [`isBezeled`](/documentation/AppKit/NSTextField/isBezeled) to <doc://com.apple.documentation/documentation/Swift/true>, then set the bezel style. See [`NSTextField.BezelStyle`](/documentation/AppKit/NSTextField/BezelStyle-swift.enum) for available bezel styles.

> Note:
> When you set this property to ``doc://com.apple.appkit/documentation/AppKit/NSTextField/BezelStyle-swift.enum/roundedBezel``, the text field doesn’t wrap the text. It displays using a single line.

---

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)