diff --git a/Demo/HandDemo/HandVectorDemo/Views/RecordAndMatch.swift b/Demo/HandDemo/HandVectorDemo/Views/RecordAndMatch.swift index e53a49b..a3c03d2 100644 --- a/Demo/HandDemo/HandVectorDemo/Views/RecordAndMatch.swift +++ b/Demo/HandDemo/HandVectorDemo/Views/RecordAndMatch.swift @@ -23,7 +23,7 @@ struct RecordAndMatch: View { var body: some View { @Bindable var model = model - VStack(alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/, spacing: 20) { + VStack(alignment: .center, spacing: 20) { Toggle("Start hand tracking", isOn: $model.turnOnImmersiveSpace) .toggleStyle(ButtonToggleStyle()) .font(.system(size: 16, weight: .bold)) @@ -41,7 +41,7 @@ struct RecordAndMatch: View { Button { countDown = 3 } label: { - Text("Read to record") + Text("Ready to record") .font(.system(size: 16, weight: .bold)) } .disabled(countDown > -1 || !model.turnOnImmersiveSpace) @@ -82,8 +82,9 @@ struct RecordAndMatch: View { Button("OK", role: .cancel) { showJsonSheet = false } + .padding(.bottom, 20) } - .frame(height: 600) + .frame(minHeight: 600) } } @@ -118,6 +119,11 @@ struct RecordAndMatch: View { } } + .onAppear { + if let para = model.recordHand { + jsonString = para.toJson() + } + } } } diff --git a/Demo/HandDemo/HandVectorDemo/zh-Hans.lproj/zh-Hans.lproj/Localizable.strings b/Demo/HandDemo/HandVectorDemo/zh-Hans.lproj/zh-Hans.lproj/Localizable.strings index ef9f25d..9157f76 100644 --- a/Demo/HandDemo/HandVectorDemo/zh-Hans.lproj/zh-Hans.lproj/Localizable.strings +++ b/Demo/HandDemo/HandVectorDemo/zh-Hans.lproj/zh-Hans.lproj/Localizable.strings @@ -18,5 +18,5 @@ "Left Hand" = "左手"; "Right Hand" = "右手"; "Both Hands" = "双手"; -"Read to record" = "准备开始录制"; +"Ready to record" = "准备开始录制"; "check recorded json string" = "查看录制好的 json 字符串";