---
title: "textEditorStyle(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/texteditorstyle(_:)"
---

# textEditorStyle(_:)

Sets the style for text editors within this view.

## Declaration

```swift
nonisolated func textEditorStyle(_ style: some TextEditorStyle) -> some View

```

## See Also

### Styling views that display text

- [labelStyle(_:)](swiftui/view/labelstyle(_:).md)
- [LabelStyle](swiftui/labelstyle.md)
- [LabelStyleConfiguration](swiftui/labelstyleconfiguration.md)
- [textFieldStyle(_:)](swiftui/view/textfieldstyle(_:).md)
- [TextFieldStyle](swiftui/textfieldstyle.md)
- [TextEditorStyle](swiftui/texteditorstyle.md)
- [TextEditorStyleConfiguration](swiftui/texteditorstyleconfiguration.md)
