Category "geometryreader"

Wrong geometry drag coordinates

I'm trying to drag the gray square inside the white square manteinig the starting point CGPoint(x: 0, y: 0) and respecting the extreme coordinates, see of the i

How do I center an Image view in pdf format with SwiftUI?

I have a vector (converted to Pdf) that I want to use as my background for my app. However, the Image is aligned all the way to the left as you'd expect when us

set @State var inside geometryReader

How is it possible to set a @State var inside a geometryReader? This is my code: @State var isTest:Int = 0 var body: some View { VStack{ ForEach(se