Say the blue rectangle is in the center of the red rectangle, and the green needed to be on top and the yellow on the left.
How would one do this in SwiftUI with alignment guides? None of the sizes are known, but the yellow and blue height match, and green and blue width match.
I got help from https://swiftui-lab.com on twitter
With my helper method:
it can be done so: