Hi everyone, I'm working on a measurements app, and I would like to set measuring in the object, looking at the image.
That screenshot from iPhone 14 pro max, but when I run the app in iPhone 14 pro, the view is very bad. How can I solve that issue?
My code:
ZStack {
GeometryReader { geo in
Image("test3")
.resizable()
.scaledToFit()
.frame(maxWidth: geo.size.width * 1)
.padding()
HStack(spacing: 40) {
Text(Joint.formatted())
.position(x: geo.size.width - 383, y: geo.size.height - 350)
Text(W1.formatted())
.position(x: geo.size.width - 405, y: geo.size.height - 350)
Text(L1.formatted())
.position(x: geo.size.width - 382, y: geo.size.height - 350)
Text(W2.formatted())
.position(x: geo.size.width - 365, y: geo.size.height - 350)
Text(L2.formatted())
.position(x: geo.size.width - 350, y: geo.size.height - 350)
}
}
}
Thanks in advance