Skip to content

Commit 7a2ec4a

Browse files
committed
0.4 RC
1 parent f2b50b9 commit 7a2ec4a

File tree

21 files changed

+2055
-756
lines changed

21 files changed

+2055
-756
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## v0.4 - 2023-02-22
8+
9+
### Added
10+
- Custom overlay's line width, font size, and color.
11+
- A conditional color based on measured angle
12+
13+
714
## v0.3 - 2023-02-14
815

916
### Added

QuickPoseCore.xcframework/Info.plist

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64</string>
9+
<string>ios-x86_64-simulator</string>
1010
<key>LibraryPath</key>
1111
<string>QuickPoseCore.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
14-
<string>arm64</string>
14+
<string>x86_64</string>
1515
</array>
1616
<key>SupportedPlatform</key>
1717
<string>ios</string>
18+
<key>SupportedPlatformVariant</key>
19+
<string>simulator</string>
1820
</dict>
1921
<dict>
2022
<key>LibraryIdentifier</key>
21-
<string>ios-x86_64-simulator</string>
23+
<string>ios-arm64</string>
2224
<key>LibraryPath</key>
2325
<string>QuickPoseCore.framework</string>
2426
<key>SupportedArchitectures</key>
2527
<array>
26-
<string>x86_64</string>
28+
<string>arm64</string>
2729
</array>
2830
<key>SupportedPlatform</key>
2931
<string>ios</string>
30-
<key>SupportedPlatformVariant</key>
31-
<string>simulator</string>
3232
</dict>
3333
</array>
3434
<key>CFBundlePackageType</key>

QuickPoseCore.xcframework/ios-arm64/QuickPoseCore.framework/Headers/QuickPoseCore-Swift.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,20 @@ using UInt = size_t;
365365
/// UIApplication.shared.isIdleTimerDisabled = true // keep screen on when in use
366366
/// }
367367
///
368+
/// \endcodeFor an example with changed formatting such as font size, color and line width we can specify a <code>Style</code> class
369+
/// \code
370+
/// let smallerStyle = QuickPose.Style(relativeLineWidth: 0.33)
371+
/// quickPose.start(features: [.overlay(.userLeftArm, style: smallerStyle)], onFrame: { status, image, _, _ in
372+
/// ....
373+
/// })
374+
///
375+
/// \endcodeAnd for conditional formatting when the angle goes above 120 degrees use:
376+
/// \code
377+
/// let conditionalStyle = QuickPose.Style(conditionalColors: [QuickPose.Style.ConditionalColor(min: 120, max: nil, color: UIColor.red)])
378+
/// quickPose.start(features: [.overlay(.userLeftArm, style: conditionalStyle)], onFrame: { status, image, _, _ in
379+
/// ....
380+
/// })
381+
///
368382
/// \endcode
369383
SWIFT_CLASS("_TtC13QuickPoseCore9QuickPose")
370384
@interface QuickPose : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate>

0 commit comments

Comments
 (0)