---
title: automatic
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/textfieldstyle/automatic
---

# automatic

The default text field style, based on the text field’s context.

## Declaration

```swift
static var automatic: DefaultTextFieldStyle { get }
```

## Discussion

Discussion The default style represents the recommended style based on the current platform and the text field’s context within the view hierarchy.

## See Also

### Getting built-in text field styles

- [plain](swiftui/textfieldstyle/plain.md)
- [roundedBorder](swiftui/textfieldstyle/roundedborder.md)
- [squareBorder](swiftui/textfieldstyle/squareborder.md)
