title: Swift UI setting making rectangle square
body: <p>In SwiftUI, I have a VStack with a Rectangle inside. The rectangle automatically fills the parent VStack, which is great for the width, but I want to make the height equal to the width so it's square. How do I set the aspect ratio to 1:1 or set height = width? </p>
  
  <pre><code>VStack {
    Rectangle()
      .frame(height: ?? )  // I want to make the height equal to width so it's square
    Spacer()
  </code></pre>
  
  <p>}</p>