---
title: borderStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextfield/borderstyle-swift.property
---

# borderStyle

The border style for the text field.

## Declaration

```swift
var borderStyle: UITextField.BorderStyle { get set }
```

## Discussion

Discussion The default value for this property is UITextField.BorderStyle.none. If the value is set to the UITextField.BorderStyle.roundedRect style, the custom background image associated with the text field is ignored.

## See Also

### Setting the view’s background appearance

- [background](uikit/uitextfield/background.md)
- [disabledBackground](uikit/uitextfield/disabledbackground.md)
