How to Position Views in SwiftUI

Sometimes you want to position your views precisely within a SwiftUI layout. How to place your view on a specific coordinate You can use the position modifier to place a view at a specific point within its parent. import Swift struct ContentView: View { var body: some View { Circle() .fill(Color.blue) .frame(width: 100, height: 100) .position(x: 100, y: 100) } } Caveats Using the position modifier…