Skip to content

Commit ef569c1

Browse files
committed
fix full body visibility
1 parent dd9301c commit ef569c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SampleApps/SwiftUI/PickerDemo/QuickPose Demo/QuickPosePickerView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,13 @@ struct QuickPosePickerView: View {
205205
.font(.system(size: 32, weight: .semibold)).foregroundColor(.white)
206206
.padding(.bottom, 40 + safeAreaInsets.bottom).opacity(counterVisibility * isFullBodyVisible)
207207
ValueBar(value: measure, opacity: isFullBodyVisible * counterVisibility)
208+
}
209+
}.overlay(alignment: .center) {
210+
if (selectedFeatures.contains(.checks(.isFullBodyVisible))) {
208211
Text("Ensure your full body is visible")
209212
.font(.system(size: 32, weight: .semibold)).foregroundColor(.red).multilineTextAlignment(.center)
210213
.padding(.bottom, 40 + safeAreaInsets.bottom)
211-
.opacity((1 - isFullBodyVisible) * counterVisibility)
214+
.opacity(1 - isFullBodyVisible)
212215
}
213216
}.overlay(alignment: .bottom) {
214217
if let feature = selectedFeatures.first {

0 commit comments

Comments
 (0)