title: SwiftUI: How to remove margin between views in VStack?
body: <p>Using SwiftUI, I created a VStack, which contains some fixed elements and a list element. The reason is, that the user should only scroll the area under the fixed elements. Now I see a space between the second fixed element and the list. I don't know where this space is coming from and want to get rid of it, but have no idea, how. The area is marked in red.</p>
  
  <pre><code>struct DashboardView : View, CoreDataInjected {
  
      var body: some View {
          GeometryReader { geometry in
              VStack {
                  ScopeSelectorView().frame(maxWidth: .infinity).background(ColorPalette.gray)
                  BalanceNumberView().frame(maxWidth: .infinity)
                  List {
                      DashboardNavigationView(
                          height: geometry.size.height - ScopeSelectorView.height - BalanceNumberView.height
                      ).frame(maxWidth: .infinity).listRowInsets(.zero)
                  }
              }
          }.background(Color.red).edgesIgnoringSafeArea(.all)
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0wWsp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0wWsp.png" alt="Screenshot of view"></a></p>