Home > AI > IOS > SwiftUI >

TextEditor

A view that can display and edit long-form text.

Example (Apple Official)

struct ContentView: View {
    @State private var fullText: String = "This is some editable text..."

    var body: some View {
        TextEditor(text: $fullText)
            .foregroundColor(Color.gray)
            .font(.custom("HelveticaNeue", size: 13))
    }
}

Leave a Reply