title: SwiftUI - Remove space between cells
body: <p>I am implementing a list view in SwiftUI. What I am trying to approach is to have cells that has no space between any other cells or parent view.</p>
  
  <p><a href="https://i.stack.imgur.com/6uXdM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6uXdM.png" alt="enter image description here"></a></p>
  
  <p>So in this screenshot as you can see there is a space between every cell and also space with the edge of the phone, which I want to remove.</p>
  
  <pre class="lang-swift prettyprint-override"><code>struct FlickrView : View {
      var flickrResponse: [FlickrResponse]
      var body: some View {
          List(flickrResponse) { item in
              FlickrImageCell(response: item)
          }
      }
  }
  
  struct FlickrImageCell : View {
      var response: FlickrResponse
      var body: some View {
          return ZStack(alignment: .topLeading) {
              Image(uiImage: response.image ?? UIImage())
                  .resizable()
                  .aspectRatio(contentMode: .fill)
                  .frame(width: nil, height: 100.0, alignment: .center)
                  .clipShape(Rectangle())
                  .padding(0)
              Text(response.title).fontWeight(.medium).multilineTextAlignment(.center)
          }
      }
  }
  </code></pre>
  
  <p>I have tried this modifier:</p>
  
  <pre><code>.padding(EdgeInsets(top: 0, leading: -20, bottom: 20, trailing: -20))
  </code></pre>
  
  <p>But I have two problems with this approach: First, I don't think its convenient to write literal negative values. Second, the bottom padding does not work with any value.</p>
  
  <p>So any suggestions?</p>