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

# automatic

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

## Declaration

```swift
@MainActor @preconcurrency static var automatic: AutomaticTextEditorStyle { get }
```

## Discussion

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

## See Also

### Getting built-in styles

- [plain](swiftui/texteditorstyle/plain.md)
- [roundedBorder](swiftui/texteditorstyle/roundedborder.md)
