title: SwiftUI how do I perfectly align on of my object in my HStack in the center of my screen?
body: <p>I am trying to figure out how to align my "Create" Button in the exact middle of my screen with my "share" button to the right of my centered "Create" Button, without using arbitrary numbers. </p>
  
  <p><a href="https://i.stack.imgur.com/YPU91.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YPU91.png" alt="not centered Create button"></a></p>
  
  <pre><code>            HStack (spacing: 40) {
                  Text("Create")
                      .fontWeight(.bold)
  
                      .frame(width: 185, height: 40, alignment: .center)
                      .cornerRadius(50)
                      .overlay(
                          Capsule(style: .circular)
                              .stroke(Color(red: 0.879, green: 0.369, blue: 0, opacity: 1), style: StrokeStyle(lineWidth: 2)))
  
                  Image(systemName:"square.and.arrow.up")
                      .resizable()
                      .frame(width: 25, height: 30)
                      .font(Font.title.weight(.light))
  
              }  .foregroundColor(Color(red: 0.879, green: 0.369, blue: 0, opacity: 1))
  </code></pre>