title: Issues with SwiftUI List NavigationLink frame(height: CGFloat)
body: <p>I am trying to display a custom view for my List Row, it is an HStack with an image, a title Text and another Text containing a short paragraph. I am having issues with the height of the NavigationLink item. I have tried setting the frame to a specific height but it does not display optimally on different devices (the small resolution difference between the iPhone XR and iPhone XS is enough to make me have to adjust the height manually). </p>
  
  <p>Is there a way to have the frame height be set automatically? I have tried many things such as setting the frame height on my PlanetRow View, adding padding, setting the lineLimit to: 0, 3, 5, ... Whatever I do, if I don't set the height for the NavigationLink View, the PlanetRow extends past the NavigationLink View (visible beyond the List separators). </p>
  
  <p>Here's the code for my views: </p>
  
  <pre class="lang-swift prettyprint-override"><code>struct PlanetRow : View {
      var planet: Planet
  
      var body: some View {
          HStack {
              Image("Mars")
                  .resizable()
                  .frame(width: 50, height: 50)
              VStack(alignment: .leading) {
                  Text(planet.name)
                      .font(.largeTitle)
                  Text(planet.overview)
                      .font(.caption)
              }
              .lineLimit(nil)
          }
      }
  }
  
  struct PlanetList : View {
      var body: some View {
          NavigationView {
              List(planetData.identified(by: \.id)) { planet in
                  NavigationLink(destination: PlanetDetail(planet: planet)) {
                      PlanetRow(planet: planet)
                  }
                  .frame(height: 150)
              }
              .navigationBarTitle(Text("Planets"))
          }
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Z6714.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z6714.png" alt="NavigationLink with Frame Height"></a>
  <a href="https://i.stack.imgur.com/wUBsp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wUBsp.png" alt="NavigationLink without Frame Height"></a></p>