title: TextEditor disable editing
body: <h3>Overview:</h3>
  <ul>
  <li>I have a TextEditor that uses a binding to a constant, so that value can't change.</li>
  </ul>
  <h3>Aim:</h3>
  <ul>
  <li>I would like the text editor not to show the keyboard however still allow the user to copy text.</li>
  </ul>
  <h3>Question:</h3>
  <ul>
  <li>How to achieve copying of text but without showing the keyboard?</li>
  <li>I would prefer to do in SwiftUI or is it only possible using <code>UIViewRepresentable</code>?</li>
  </ul>
  <h3>Code:</h3>
  <pre><code>import SwiftUI
  
  struct TextView: View {
      
      let text: String
      
      var body: some View {
          TextEditor(text: .constant(text))
      }
  }
  
  struct TextView_Previews: PreviewProvider {
      static var previews: some View {
          
          let text = &quot;this is some text&quot;
          
          TextView(text: text)
      }
  }
  </code></pre>