title: Align text as leading in ScrollView - SWIFTUI
body: <p>I have a <code>ScrollView</code>:</p>
  <pre><code>    ScrollView {
          VStack (alignment: .leading) {
              Text(&quot;\(userData.username), \(userData.age)&quot;)
                  .fontWeight(.semibold)
                  .font(Font.system(size:30))
          }
      }
  </code></pre>
  <p>The output is:</p>
  <p><a href="https://i.stack.imgur.com/7aHhd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7aHhd.png" alt="enter image description here" /></a></p>
  <p>I tried flipping the Stack and having the scroll view inside, but I get the same result.</p>
  <p>The work around I have is to put it in a HStack and add a Spacer()</p>
  <pre><code>HStack {
           Text(&quot;\(userData.username), \(userData.age)&quot;)
               .fontWeight(.semibold)
               .font(Font.system(size:30))
               .padding([.leading])
           Spacer()
  }
  </code></pre>
  <p>This does the trick but I dont think this is the ideal way. Is this the only way? or is there a better solution to align text vertically in a scrollview?</p>