I'm working on creating a "bridge" shape in SwiftUI by combining a rectangle and a circle. I believe using a method like .union might be the solution, but I'm having trouble figuring out how to implement it correctly. My goal is to merge a rectangle and a circle to create a shape that resembles a bridge. Specifically, I want the top side of the rectangle to have an inset curve. Additionally, I'd like to place an image in the background of this composite shape. Essentially, the final design should be a rectangle with a curved inset at the top and an image set behind it.
Some help woud be great! thanks
ZStack {
Rectangle()
.fill(.blue)
.frame(height:250)
Image("BGImage")
Circle()
.fill(.white)
.frame(width: 700)
.offset(y:-400)
}
Thats the goal:


