title: Text inside a VStack truncates when it's not supposed to in SwiftUI
body: <p>I'm trying to create a simple stack of <code>Text</code> inside a <code>VStack</code>, and no matter what I do, the text will truncate instead of wrap, even if I explicitly set <code>lineLimit(nil)</code> (although I know this is the default now).</p>
  
  <p>I've tried setting <code>layoutPriority(1)</code> on the first element in the VStack, and I have also tried setting <code>frame(idealHeight: .greatestFiniteMagnitude)</code> as some other posts have suggested, but nothing seems to fix the issue.</p>
  
  <p>Here is a video of the issue in action:</p>
  
  <p><a href="https://i.stack.imgur.com/DV9TB.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/DV9TB.gif" alt="animated gif of bug repro"></a></p>
  
  <p>Here is some code that reproduces the issue:</p>
  
  <pre><code>import SwiftUI
  
  struct BugRepro: View {
  
      @State var length: Double = 1.0
  
      var body: some View {
          VStack {
              ForEach(0..&lt;3) { i in
                  BugReproElement(index: i)
              }
              .background(Color.gray3)
              .frame(width: UIScreen.main.bounds.width * CGFloat(length))
  
  
              Slider(value: $length, in: 0.0...1.0)
          }
  
      }
  }
  
  struct BugRepro_Previews: PreviewProvider {
      static var previews: some View {
          BugRepro()
      }
  }
  
  struct BugReproElement: View {
      var index: Int
  
      var body: some View {
          Text("iaush isuh siudh siudh isudh isudhdsiu sdiuh sdihs")
          .foregroundColor(.gray7)
          .frame(minWidth: 0, maxWidth: .infinity, alignment: .leading)
      }
  }
  </code></pre>
  
  <p>Could this just be a bug in Xcode? I'm running Beta 7</p>