title: How to remove bottom padding of List and ScrollView in SwiftUI
body: <p>I'd like to remove bottom padding, the white space between the red space. Is there any way to achieve it?</p>
  <p><a href="https://i.stack.imgur.com/HA2YOl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HA2YOl.png" alt="enter image description here" /></a></p>
  <p><strong>Test Code:</strong></p>
  <pre><code>struct ContentView: View {
      var body: some View {
          return NavigationView {
              VStack {
                  // the same result with using List instead of ScrollView
                  ScrollView {
                      ForEach(1..&lt;100) { index in
                          HStack {
                              Spacer()
                              Text(&quot;\(index)&quot;)
                              Spacer()
                          }
                      }
                  }.background(Color.red)
                  HStack {
                      Spacer()
                      Text(&quot;Test&quot;)
                      Spacer()
                  }
                  .background(Color.red)
              }
              .navigationBarTitle(Text(&quot;Test&quot;), displayMode: .inline)
          }
      }
  }
  </code></pre>