SweetUI

Search items

Jump to an item

component

textarea

Focus, disabled, invalid chrome.

textareatext-editormultilineformmodifier
textarea, light

On iPad

The same installed source at a regular width. It adapts its layout without a separate design.

textarea on iPad, light

Install

With the sweetui tool (brew install mangobyte-dev/tap/sweetui):

sweetui install textarea --destination Sources/YourFeature/Components

Installs in order: textarea 0.4.1. Point --destination at a folder inside the consuming target's sources.

Usage

@State private var notes = ""

TextEditor(text: $notes)
    .registryTextArea(accessibilityLabel: Text("Delivery instructions"))

Accessibility contract

  • Editing, selection, keyboard, scrolling.
  • Label needed; no prompt.
  • Validation copy, invalid hint.
  • Dynamic Type, focus, direction.

Details

Kindcomponent
Version0.4.1
PlatformsiOS 26.0+
Dependenciesnone
SourceRegistry/sources/components/RegistryTextAreaModifier.swift
Xcode previewTextarea States