Home > OS >  How to place shapes using SwiftUI?
How to place shapes using SwiftUI?

Time:11-21

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:

enter image description here

CodePudding user response:

Use image running in a simulator

  • Related