title: Move TextField up when the keyboard has appeared in SwiftUI
body: <p>I have seven <code>TextField</code> inside my main <code>ContentView</code>. When user open keyboard some of the <code>TextField</code> are hidden under the keyboard frame. So I want to move all <code>TextField</code> up respectively when the keyboard has appeared.</p>
  
  <p>I have used the below code to add <code>TextField</code> on the screen.</p>
  
  <pre><code>struct ContentView : View {
      @State var textfieldText: String = ""
  
      var body: some View {
              VStack {
                  TextField($textfieldText, placeholder: Text("TextField1"))
                  TextField($textfieldText, placeholder: Text("TextField2"))
                  TextField($textfieldText, placeholder: Text("TextField3"))
                  TextField($textfieldText, placeholder: Text("TextField4"))
                  TextField($textfieldText, placeholder: Text("TextField5"))
                  TextField($textfieldText, placeholder: Text("TextField6"))
                  TextField($textfieldText, placeholder: Text("TextField6"))
                  TextField($textfieldText, placeholder: Text("TextField7"))
              }
      }
  }
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/HDO4g.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HDO4g.png" alt="Output"></a></p>