Skip to content

Commit 8fb2006

Browse files
committed
tidying
1 parent bca7ab5 commit 8fb2006

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

SampleApps/SwiftUI/BasicDemo/QuickPose Demo/QuickPoseBasicView.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,8 @@ struct QuickPoseBasicView: View {
2424
}
2525
QuickPoseOverlayView(overlayImage: $overlayImage)
2626
}
27-
.overlay(alignment: .bottom) {
28-
Text("Powered by QuickPose.ai v\(quickPose.quickPoseVersion())") // remove logo here, but attribution appreciated
29-
.font(.system(size: 16, weight: .semibold)).foregroundColor(.white)
30-
.frame(maxHeight: 40 + geometry.safeAreaInsets.bottom, alignment: .center)
31-
.padding(.bottom, 0)
32-
}
3327
.frame(width: geometry.size.width)
3428
.edgesIgnoringSafeArea(.all)
35-
3629
.onAppear {
3730
quickPose.start(features: [.overlay(.wholeBody)], onFrame: { status, image, features, feedback, landmarks in
3831
overlayImage = image
@@ -45,6 +38,12 @@ struct QuickPoseBasicView: View {
4538
}.onDisappear {
4639
quickPose.stop()
4740
}
41+
.overlay(alignment: .bottom) {
42+
Text("Powered by QuickPose.ai v\(quickPose.quickPoseVersion())") // remove logo here, but attribution appreciated
43+
.font(.system(size: 16, weight: .semibold)).foregroundColor(.white)
44+
.frame(maxHeight: 40 + geometry.safeAreaInsets.bottom, alignment: .center)
45+
.padding(.bottom, 0)
46+
}
4847

4948
}
5049
}

SampleApps/SwiftUI/BasicDemo/QuickPose Demo/QuickPose_BasicDemoApp.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import AVFoundation
1212
struct QuickPose_DemoApp: App {
1313
var body: some Scene {
1414
WindowGroup {
15-
DemoAppView().edgesIgnoringSafeArea(.all)
15+
DemoAppView()
16+
.edgesIgnoringSafeArea(.all)
1617
.background(Color("AccentColor"))
1718
}
1819
}

SampleApps/SwiftUI/FeedbackDemo/QuickPose Demo/QuickPoseBasicView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import QuickPoseSwiftUI
1111

1212
struct QuickPoseBasicView: View {
1313

14-
private var quickPose = QuickPose(sdkKey: "01GS5J4JEQQZDZZB0EYSE974BV") // register for your free key at https://dev.quickpose.ai
14+
private var quickPose = QuickPose(sdkKey: "YOUR SDK KEY HERE") // register for your free key at https://dev.quickpose.ai
1515
@State private var overlayImage: UIImage?
1616
@State private var feedbackText: String? = nil
1717

0 commit comments

Comments
 (0)