メモ書き中…
TextEditor(text: $text) .onChange(of: text) { value in print(value) } .frame(width: UIScreen.main.bounds.width - 40) .overlay(RoundedRectangle(cornerRadius: 5).stroke(Color.gray, lineWidth: 1)) .padding()
Text編集させないようにする
.disabled(true)
背景色変更
https://zenn.dev/ariiyu/scraps/39376d4aceb48c
.onAppear() { UITextView.appearance().backgroundColor = .clear }
参考文献