title: SwiftUI Form not positioning correctly using Spacer()
body: <p>I am trying to create a profile page, in which there is a form at the bottom with various options. However when I insert a <code>Spacer(</code>) into the <code>VStack</code>, the form does not move to the bottom of the screen, as it should do. I tried replacing the Form with a Text and it worked fine, moving to the bottom of the screen. So I'm assuming it has something to do with the form.</p>
  
  <p><a href="https://i.stack.imgur.com/QqmT3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QqmT3.png" alt="the current layout"></a></p>
  
  <p>Here is my code</p>
  
  <pre><code>struct Profile: View {
  
      @Environment(\.presentationMode) var mode: Binding&lt;PresentationMode&gt;
  
      var body: some View {
  
          NavigationView {
              VStack {
                  Image(systemName: "person.crop.circle")
                      .resizable()
                      .frame(width: 50, height: 50)
  //                    .padding(.top)
  
                  Text("email@email.com")
                      .font(.title)
  
                  Spacer()
  
                  Form {
                      Section {
                          //menuListItem(image: "gear", label: "Settings")
                          menuListItem(image: "questionmark.circle", label: "Help")                     menuListItem(image: "info.circle", label: "About")
                      }
  
                      Section {
                          HStack {
                              Spacer()
                              Button(action: {
                                  UserDefaults.standard.set(false, forKey: "LoggedIn")
                                  UserDefaults.standard.set(nil, forKey: "user_id")
                                  UserDefaults.standard.set(nil, forKey: "school_id")
                                  self.mode.wrappedValue.dismiss()
                              }) {
                                  Text("Log Out")
                                      .font(.body)
                                      .foregroundColor(.red)
                              }
                              Spacer()
                          }
                      }
                  }  
              }
              .navigationBarTitle("Profile", displayMode: .inline)
          }
      }
  }
  
  struct menuListItem: View {
  
      var image: String
      var label: String
  
      var body: some View {
          HStack {
              Image(systemName: image)
              Text(label)
                  .font(.body)
          }
      }
  }
  </code></pre>