I am learning about layout using SwiftUI and would like to understand how to tell swift that, if there is a background rectangle in a zstack, and a series of smaller shapes on top, to use the rectangle as the reference space. Although when try it seems to space objects over the entire screen (rather than using the the background object). Here is an example of what I am trying to write:
CodePudding user response: