title: SwiftUI - EditMode and PresentationMode Environment
body: <p>How can I show a form in EditMode and PresentationMode Environment?</p>
  
  <p>Example:</p>
  
  <p>When user tap on EditButton, it should show Form in EditMode, with text files as input, and changes Navigation Title</p>
  
  <pre><code>import SwiftUI
  
  struct FormView: View {
  
      var body: some View {
  
          NavigationView {
  
  
          Form {
  
  
              Text("Placeholder")
  
              // On EditMode it should show this
              // TextField("Placeholder", text: Value)
  
             }
  
          .navigationBarTitle("Presentation Mode")
          // On EditMode it should show this
          // .navigationBarTitle("Edit Mode")
  
          .navigationBarItems(trailing: EditButton())
  
  
  
  
  
  
   }
  
  
      }
  }
  
  struct FormView_Previews: PreviewProvider {
      static var previews: some View {
  
          FormView()
      }
  }
  
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/g8Pxw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g8Pxw.png" alt="enter image description here"></a></p>