Hi everyone, I'm working on a measurements app , and I would like to set measuring near the object , Looking at the image, I mentioned the location of each measurement in the object.
I tried to use position(x: , y:) but that doesn't work well on all screen sizes. Can anyone suggest a solution?
my code:
VStack(spacing: 10) {
Text("J: \(Joint.formatted())")
HStack(spacing: 15) {
Text("L1: \(L1.formatted())")
Text("W1: \(W1.formatted())")
Text("L2: \(L2.formatted())")
Text("W2: \(W2.formatted())")
}
HStack(spacing: 20) {
Text("F: \(F.formatted())")
Text("H: \(H.formatted())")
Text("F: \(F.formatted())")
}
GeometryReader { geometry in
Image("test6")
.resizable()
.scaledToFit()
.frame(maxWidth: geometry.size.width * 1)
.padding()
}
}
thanks in advance.