# Text​Editor95

A multiline editor with a sunken surface and optional classic scroll indicator.

TextEditor95 wraps SwiftUI text editing in the same input treatment used by the rest of Swift95.

![TextEditor95 multiline text control](/images/texteditor95-macos.png)

The fitting and overflowing editors rendered by the snippet below.

## Use it

```swift
import Swift95
import SwiftUI

struct TextEditor95Example: View {
  var body: some View {
    VStack(alignment: .leading, spacing: 12) {
      TextEditor95(text: .constant("Content fits without scrolling"))
        .frame(height: 90)

      TextEditor95(
        text: .constant(
          (1...20).map { "Overflow line \($0)" }.joined(separator: "\n")
        )
      )
      .frame(height: 130)
    }
  }
}
```

## Essential behavior

**Scrolling**Long text scrolls vertically with the component’s classic indicator.

**Binding**Edits the supplied String binding directly.

**Sizing**Give the editor an explicit or constrained height in flexible layouts.

## Related

- [TextField95](/components/text-field/)
- [ScrollIndicator95](/components/scroll-indicator/)
- [Theme95](/components/theme/)

[Open the complete TextEditor95 API reference →](/api/documentation/swift95/texteditor95)
