texteditor scroll hidden in swiftUI

Viewed 37

I want to hidden scroll indicator in textEditor. Support from swiftui modifier, uikit possible ways in?

TextEditor(text: $context)
                        .foregroundColor(self.context == contextPlaceholder ? Color.grayA7 : Color.gray23)
                        .font(.bodyRegular)
                        .focused($isTextFieldsFocused)
                        .background(Color.grayF5)
                        .lineSpacing()
                        .padding(.vertical, 23)
                        .padding(.horizontal, 20)
                        .textSelection(.disabled)
                        .onTapGesture {
                            if self.context == contextPlaceholder{
                                self.context = ""
                            }
                        }
1 Answers

Using Introspect:

TextEditor(text: $context)
    .introspectTextView { textView in
        textView.showsVerticalScrollIndicator = false
    }
Related