title: SwiftUI HStack with Wrap
body: <p>Is it possible that the blue tags (which are currently truncated) are displayed completely and then it automatically makes a line break?</p>
  <pre class="lang-swift prettyprint-override"><code>NavigationLink(destination: GameListView()) {
    VStack(alignment: .leading, spacing: 5){
      // Name der Sammlung:
      Text(collection.name)
        .font(.headline)
  
      // Optional: Für welche Konsolen bzw. Plattformen:
      HStack(alignment: .top, spacing: 10){
        ForEach(collection.platforms, id: \.self) { platform in
          Text(platform)
            .padding(.all, 5)
            .font(.caption)
            .background(Color.blue)
            .foregroundColor(Color.white)
            .cornerRadius(5)
            .lineLimit(1)
        }
      }
    }
    .padding(.vertical, 10)
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/maktV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/maktV.png" alt="enter image description here" /></a></p>
  <p>Also, there should be no line breaks with in the blue tags:</p>
  <p><a href="https://i.stack.imgur.com/WTt6T.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WTt6T.png" alt="enter image description here" /></a></p>
  <p>That's how it should look in the end:</p>
  <p><a href="https://i.stack.imgur.com/pd9mE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pd9mE.png" alt="enter image description here" /></a></p>