title: How to align bottom edge to Center of above view swiftui
body: <p>I'm currently trying to align the person image vertical center (/centerY) to the bottom edge of the gradient view in a SwiftUI View.</p>
  <p>Code:-</p>
  <pre><code>struct GroupDetailScreen: View {
  var body: some View {
      ZStack{
          VStack {
              LinearGradient(gradient: Gradient(colors: [Color.red,Color.blue]), startPoint: .top, endPoint: .bottom)
                  .frame(width:UIScreen.screenWidth,height: 180, alignment: .center)
                  .clipped()
              ZStack{
                  Image(systemName: &quot;person.circle.fill&quot;)
                      .renderingMode(.original)
                      .resizable()
                      .frame(width: 100, height: 100)
                      .aspectRatio(contentMode: .fit)
              }
           }
        }
     }
  }
  </code></pre>
  <p><strong>Output</strong></p>
  <p><img src="https://i.stack.imgur.com/OyKIm.png" alt="Screenshot" /></p>
  <p><strong>Want to achieve:-</strong></p>
  <p><img src="https://i.stack.imgur.com/LHGek.jpg" alt="Screenshot" /></p>
  <p>Can someone please explain to me how to align the person image vertical center (/centerY) to the bottom edge of the gradient view. I've tried to implement by above but no results yet.</p>
  <p>Any help would be greatly appreciated.</p>
  <p>Thanks in advance.</p>