---
title: borderShape
framework: AppKit
role: symbol
role_heading: Instance Property
platforms: [macOS 26.0+]
path: appkit/nstextfield/bordershape
---

# borderShape

Set border shape NSControlBorderShapeAutomatic sets text field or subclass to default system shape. NSControlBorderShapeCircle sets text field or subclass to NSControlBorderShapeAutomatic.

## Declaration

```swift
var borderShape: NSControl.BorderShape { get set }
```
