title: Why background color of List is different while presenting view in SwiftUI?
body: <p>I am implementing List in Presented view (AddItemView). I want background color same as List in any view.</p>
  <pre><code>struct HomeView: View {
      @State private var showAddItemView: Bool = false
      var body: some View {
          NavigationView {
              List(0..&lt;9, id: \.self) { i in
                  Text(&quot;Row \(i)&quot;)
              }
              .navigationTitle(&quot;Home&quot;)
              .navigationBarItems(trailing:
                  Button(&quot;Add&quot;) {
                      showAddItemView.toggle()
                  })
              .sheet(isPresented: $showAddItemView) {
                  AddItemView()
              }    
          }
      }
  }
  
  struct AddItemView: View {
      init(){
          UITableView.appearance().backgroundColor = .clear
      }
      var body: some View {
          NavigationView {
              List(0..&lt;9, id: \.self) { i in
                  Text(&quot;Row \(i)&quot;)
              }.background(Color(UIColor.systemGroupedBackground))
              .listStyle(InsetGroupedListStyle())
              .navigationBarTitle(&quot;Add Item View&quot;, displayMode: .inline)    
          }
      }
  }
  </code></pre>
  <p>Above code is creating simple List with InsetGroupedListStyle. But background colour is different while Presenting view (AddItemView in my case).</p>
  <p>I have already tried <a href="https://stackoverflow.com/a/58427518/7084910">https://stackoverflow.com/a/58427518/7084910</a></p>
  <p>How to set background color of List in presented view as in any normal list. Red/Yellow/Green can set to List, &quot;BUT&quot; I want same as normal list in HomeView that will work in light &amp; dark mode.</p>
  <p><a href="https://i.stack.imgur.com/bkdWt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bkdWt.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/hq7Km.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hq7Km.png" alt="enter image description here" /></a></p>