So I've created some stack views, a Zstack and Hstack in a V stack.The things in the Z-stack shows up, but the Text Hstack,"SquatCounter" only shows up when I run the app using iphone 11/12 simulators.But when i run this app on my iphone se2, the Hstack just isn't there. I need the text in the Hstack to show up no matter the phone model, anyone with experience pls help!
Expected result: The Text "squatCounter"shows up no matter what iphone its running on
Actual result; Text"squatCounter" only shows up on iphone 11/12 simulators, but not on other simulators/my own iphone se 2
I've tried adding a physical Hstack with a label inside and it also doesn't show up.
var body: some View {
VStack {
ZStack {
GeometryReader { geo in
CameraViewWrapper(poseEstimator: poseEstimator)
StickFigureView(poseEstimator: poseEstimator, size: geo.size)
}
}.padding(0.0).frame(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.height * 1920 / 1080, alignment: .center)
HStack {
Text("Squat counter:")
.font(.title)
Text(String(poseEstimator.squatCount))
.font(.title)
Image(systemName: "exclamationmark.triangle.fill")
.font(.largeTitle)
.foregroundColor(Color.red)
.opacity(poseEstimator.isGoodPosture ? 0.0 : 1.0)
}
}
}
