title: Different row view in swiftUI
body: <p>I have two rows and second row needs to be align with first row except the last element. Here is the graphical representation...</p>
  <p>What I want:</p>
  <p><a href="https://i.stack.imgur.com/k4YRZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k4YRZ.jpg" alt="enter image description here" /></a></p>
  <p>Here is my code:</p>
  <pre><code>struct TwoRowView: View {
      
      var body: some View {
          VStack {
              HStack {
                  ForEach(0..&lt;6) { i in
                      Text(&quot;\(i)&quot;)
                          .padding(.vertical, 10)
                          .frame(maxWidth: .infinity)
                          .background(Color.red)
                  }
              }.padding(.bottom, 5)
              
              HStack {
                  ForEach(6..&lt;10) { i in
                      Text(&quot;\(i)&quot;)
                          .padding(.vertical, 10)
                          .frame(maxWidth: .infinity)
                          .background(Color.red)
                  }
              }
          }.padding()
      }
  }
  </code></pre>