Implements a real-time progress sheet that displays during snapshot fetch and a comprehensive report after completion. Key features: Progress Tab: - Real-time per-type fetch status (pending/complete/unauthorized/failed) - Status icons with appropriate colors - Record counts as metrics complete - Live during fetch operation Report Tab: - Summary: successful/unauthorized/failed counts and duration - Amber callout for unauthorized metrics with clear instructions: "Enable in Health app → Settings → Privacy → Health → HealthProbe" - Red section for other failures with reasons - Complete metric list sorted alphabetically Backend changes: - HealthKitService.createSnapshot and fetchAllTypeCounts now accept onTypeCompleted callback to surface results in real-time - DashboardViewModel tracks TypeProgressEntry list with status enum - Callback updates progress on MainActor as each type completes UI wiring: - New SnapshotProgressSheet with segmented picker for Progress/Report tabs - DashboardView shows sheet when "Create Snapshot" is tapped - Sheet dismisses when fetch completes This directly addresses the original request: unauthorized metrics are now clearly visible with actionable guidance in the Report tab. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@@ -0,0 +1,48 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Combine.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723941000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Combine.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 491404 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1771993793000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 4364 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775468000000000 |
|
| 32 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 19538 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771993759000000000 |
|
| 36 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 280496 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1771996850000000000 |
|
| 40 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 22988 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1771941059000000000 |
|
| 44 |
+ path: 'System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 45 |
+ size: 167871 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+version: 1 |
|
| 48 |
+... |
|
@@ -0,0 +1,68 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/CoreFoundation.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723957000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/CoreFoundation.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 179152 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1771712577000000000 |
|
| 16 |
+ path: 'usr/include/ObjectiveC.apinotes' |
|
| 17 |
+ size: 11147 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1771712453000000000 |
|
| 20 |
+ path: 'usr/include/Dispatch.apinotes' |
|
| 21 |
+ size: 19 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775450000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 18804 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1772775454000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 2676 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775458000000000 |
|
| 32 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 1572 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771993793000000000 |
|
| 36 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 4364 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1772775468000000000 |
|
| 40 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 19538 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1771993759000000000 |
|
| 44 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 45 |
+ size: 280496 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+ - mtime: 1771996850000000000 |
|
| 48 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 49 |
+ size: 22988 |
|
| 50 |
+ sdk_relative: true |
|
| 51 |
+ - mtime: 1771941059000000000 |
|
| 52 |
+ path: 'System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 53 |
+ size: 167871 |
|
| 54 |
+ sdk_relative: true |
|
| 55 |
+ - mtime: 1771941037000000000 |
|
| 56 |
+ path: 'usr/lib/swift/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 57 |
+ size: 6634 |
|
| 58 |
+ sdk_relative: true |
|
| 59 |
+ - mtime: 1772016308000000000 |
|
| 60 |
+ path: 'usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 61 |
+ size: 57504 |
|
| 62 |
+ sdk_relative: true |
|
| 63 |
+ - mtime: 1771941434000000000 |
|
| 64 |
+ path: 'usr/lib/swift/CoreFoundation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 65 |
+ size: 22492 |
|
| 66 |
+ sdk_relative: true |
|
| 67 |
+version: 1 |
|
| 68 |
+... |
|
@@ -0,0 +1,36 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Darwin.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723927000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Darwin.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 77500 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1771993793000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 4364 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775468000000000 |
|
| 32 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 19538 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+version: 1 |
|
| 36 |
+... |
|
@@ -0,0 +1,64 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Dispatch.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723951000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Dispatch.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 210892 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1771993793000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 4364 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775468000000000 |
|
| 32 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 19538 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771993759000000000 |
|
| 36 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 280496 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1771996850000000000 |
|
| 40 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 22988 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1771941059000000000 |
|
| 44 |
+ path: 'System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 45 |
+ size: 167871 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+ - mtime: 1771712577000000000 |
|
| 48 |
+ path: 'usr/include/ObjectiveC.apinotes' |
|
| 49 |
+ size: 11147 |
|
| 50 |
+ sdk_relative: true |
|
| 51 |
+ - mtime: 1771712453000000000 |
|
| 52 |
+ path: 'usr/include/Dispatch.apinotes' |
|
| 53 |
+ size: 19 |
|
| 54 |
+ sdk_relative: true |
|
| 55 |
+ - mtime: 1771941037000000000 |
|
| 56 |
+ path: 'usr/lib/swift/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 57 |
+ size: 6634 |
|
| 58 |
+ sdk_relative: true |
|
| 59 |
+ - mtime: 1772016308000000000 |
|
| 60 |
+ path: 'usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 61 |
+ size: 57504 |
|
| 62 |
+ sdk_relative: true |
|
| 63 |
+version: 1 |
|
| 64 |
+... |
|
@@ -0,0 +1,100 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Foundation.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723991000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Foundation.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 3785852 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1771993793000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 4364 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775468000000000 |
|
| 32 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 19538 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771993759000000000 |
|
| 36 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 280496 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1771996850000000000 |
|
| 40 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 22988 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1771941059000000000 |
|
| 44 |
+ path: 'System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 45 |
+ size: 167871 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+ - mtime: 1771712577000000000 |
|
| 48 |
+ path: 'usr/include/ObjectiveC.apinotes' |
|
| 49 |
+ size: 11147 |
|
| 50 |
+ sdk_relative: true |
|
| 51 |
+ - mtime: 1771712453000000000 |
|
| 52 |
+ path: 'usr/include/Dispatch.apinotes' |
|
| 53 |
+ size: 19 |
|
| 54 |
+ sdk_relative: true |
|
| 55 |
+ - mtime: 1771941037000000000 |
|
| 56 |
+ path: 'usr/lib/swift/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 57 |
+ size: 6634 |
|
| 58 |
+ sdk_relative: true |
|
| 59 |
+ - mtime: 1772016308000000000 |
|
| 60 |
+ path: 'usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 61 |
+ size: 57504 |
|
| 62 |
+ sdk_relative: true |
|
| 63 |
+ - mtime: 1771941434000000000 |
|
| 64 |
+ path: 'usr/lib/swift/CoreFoundation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 65 |
+ size: 22492 |
|
| 66 |
+ sdk_relative: true |
|
| 67 |
+ - mtime: 1772774440000000000 |
|
| 68 |
+ path: 'usr/include/XPC.apinotes' |
|
| 69 |
+ size: 123 |
|
| 70 |
+ sdk_relative: true |
|
| 71 |
+ - mtime: 1772776850000000000 |
|
| 72 |
+ path: 'System/Library/Frameworks/Security.framework/Headers/Security.apinotes' |
|
| 73 |
+ size: 162 |
|
| 74 |
+ sdk_relative: true |
|
| 75 |
+ - mtime: 1772253432000000000 |
|
| 76 |
+ path: 'System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes' |
|
| 77 |
+ size: 81098 |
|
| 78 |
+ sdk_relative: true |
|
| 79 |
+ - mtime: 1771941462000000000 |
|
| 80 |
+ path: 'usr/lib/swift/XPC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 81 |
+ size: 45108 |
|
| 82 |
+ sdk_relative: true |
|
| 83 |
+ - mtime: 1771941652000000000 |
|
| 84 |
+ path: 'usr/lib/swift/IOKit.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 85 |
+ size: 3688 |
|
| 86 |
+ sdk_relative: true |
|
| 87 |
+ - mtime: 1771995906000000000 |
|
| 88 |
+ path: 'usr/lib/swift/Observation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 89 |
+ size: 5151 |
|
| 90 |
+ sdk_relative: true |
|
| 91 |
+ - mtime: 1771941054000000000 |
|
| 92 |
+ path: 'usr/lib/swift/System.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 93 |
+ size: 95429 |
|
| 94 |
+ sdk_relative: true |
|
| 95 |
+ - mtime: 1772253192000000000 |
|
| 96 |
+ path: 'System/Library/Frameworks/Foundation.framework/Modules/Foundation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 97 |
+ size: 1155103 |
|
| 98 |
+ sdk_relative: true |
|
| 99 |
+version: 1 |
|
| 100 |
+... |
|
@@ -0,0 +1,72 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/IOKit.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723962000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/IOKit.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 30128 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1771712577000000000 |
|
| 16 |
+ path: 'usr/include/ObjectiveC.apinotes' |
|
| 17 |
+ size: 11147 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1771712453000000000 |
|
| 20 |
+ path: 'usr/include/Dispatch.apinotes' |
|
| 21 |
+ size: 19 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775450000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 18804 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1772775454000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 2676 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775458000000000 |
|
| 32 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 1572 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771993793000000000 |
|
| 36 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 4364 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1772775468000000000 |
|
| 40 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 19538 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1771993759000000000 |
|
| 44 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 45 |
+ size: 280496 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+ - mtime: 1771996850000000000 |
|
| 48 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 49 |
+ size: 22988 |
|
| 50 |
+ sdk_relative: true |
|
| 51 |
+ - mtime: 1771941059000000000 |
|
| 52 |
+ path: 'System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 53 |
+ size: 167871 |
|
| 54 |
+ sdk_relative: true |
|
| 55 |
+ - mtime: 1771941037000000000 |
|
| 56 |
+ path: 'usr/lib/swift/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 57 |
+ size: 6634 |
|
| 58 |
+ sdk_relative: true |
|
| 59 |
+ - mtime: 1772016308000000000 |
|
| 60 |
+ path: 'usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 61 |
+ size: 57504 |
|
| 62 |
+ sdk_relative: true |
|
| 63 |
+ - mtime: 1771941434000000000 |
|
| 64 |
+ path: 'usr/lib/swift/CoreFoundation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 65 |
+ size: 22492 |
|
| 66 |
+ sdk_relative: true |
|
| 67 |
+ - mtime: 1771941652000000000 |
|
| 68 |
+ path: 'usr/lib/swift/IOKit.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 69 |
+ size: 3688 |
|
| 70 |
+ sdk_relative: true |
|
| 71 |
+version: 1 |
|
| 72 |
+... |
|
@@ -0,0 +1,52 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723932000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 50828 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1771712577000000000 |
|
| 16 |
+ path: 'usr/include/ObjectiveC.apinotes' |
|
| 17 |
+ size: 11147 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775450000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 18804 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775454000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 2676 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1772775458000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 1572 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1771993793000000000 |
|
| 32 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 4364 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1772775468000000000 |
|
| 36 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 19538 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1771993759000000000 |
|
| 40 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 280496 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1771996850000000000 |
|
| 44 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 45 |
+ size: 22988 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+ - mtime: 1771941037000000000 |
|
| 48 |
+ path: 'usr/lib/swift/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 49 |
+ size: 6634 |
|
| 50 |
+ sdk_relative: true |
|
| 51 |
+version: 1 |
|
| 52 |
+... |
|
@@ -0,0 +1,44 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Observation.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723933000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Observation.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 30868 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1771993793000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 4364 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775468000000000 |
|
| 32 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 19538 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771993759000000000 |
|
| 36 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 280496 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1771995906000000000 |
|
| 40 |
+ path: 'usr/lib/swift/Observation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 5151 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+version: 1 |
|
| 44 |
+... |
|
@@ -0,0 +1,12 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Swift.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723912000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/Swift.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 15012496 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+version: 1 |
|
| 12 |
+... |
|
@@ -0,0 +1,104 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/SwiftData.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775724017000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/SwiftData.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 251608 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1771993793000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 4364 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775468000000000 |
|
| 32 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 19538 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771993759000000000 |
|
| 36 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 280496 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1771996850000000000 |
|
| 40 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 22988 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1771941059000000000 |
|
| 44 |
+ path: 'System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 45 |
+ size: 167871 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+ - mtime: 1771712577000000000 |
|
| 48 |
+ path: 'usr/include/ObjectiveC.apinotes' |
|
| 49 |
+ size: 11147 |
|
| 50 |
+ sdk_relative: true |
|
| 51 |
+ - mtime: 1771712453000000000 |
|
| 52 |
+ path: 'usr/include/Dispatch.apinotes' |
|
| 53 |
+ size: 19 |
|
| 54 |
+ sdk_relative: true |
|
| 55 |
+ - mtime: 1771941037000000000 |
|
| 56 |
+ path: 'usr/lib/swift/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 57 |
+ size: 6634 |
|
| 58 |
+ sdk_relative: true |
|
| 59 |
+ - mtime: 1772016308000000000 |
|
| 60 |
+ path: 'usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 61 |
+ size: 57504 |
|
| 62 |
+ sdk_relative: true |
|
| 63 |
+ - mtime: 1771941434000000000 |
|
| 64 |
+ path: 'usr/lib/swift/CoreFoundation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 65 |
+ size: 22492 |
|
| 66 |
+ sdk_relative: true |
|
| 67 |
+ - mtime: 1772774440000000000 |
|
| 68 |
+ path: 'usr/include/XPC.apinotes' |
|
| 69 |
+ size: 123 |
|
| 70 |
+ sdk_relative: true |
|
| 71 |
+ - mtime: 1772776850000000000 |
|
| 72 |
+ path: 'System/Library/Frameworks/Security.framework/Headers/Security.apinotes' |
|
| 73 |
+ size: 162 |
|
| 74 |
+ sdk_relative: true |
|
| 75 |
+ - mtime: 1772253432000000000 |
|
| 76 |
+ path: 'System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes' |
|
| 77 |
+ size: 81098 |
|
| 78 |
+ sdk_relative: true |
|
| 79 |
+ - mtime: 1771941462000000000 |
|
| 80 |
+ path: 'usr/lib/swift/XPC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 81 |
+ size: 45108 |
|
| 82 |
+ sdk_relative: true |
|
| 83 |
+ - mtime: 1771941652000000000 |
|
| 84 |
+ path: 'usr/lib/swift/IOKit.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 85 |
+ size: 3688 |
|
| 86 |
+ sdk_relative: true |
|
| 87 |
+ - mtime: 1771995906000000000 |
|
| 88 |
+ path: 'usr/lib/swift/Observation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 89 |
+ size: 5151 |
|
| 90 |
+ sdk_relative: true |
|
| 91 |
+ - mtime: 1771941054000000000 |
|
| 92 |
+ path: 'usr/lib/swift/System.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 93 |
+ size: 95429 |
|
| 94 |
+ sdk_relative: true |
|
| 95 |
+ - mtime: 1772253192000000000 |
|
| 96 |
+ path: 'System/Library/Frameworks/Foundation.framework/Modules/Foundation.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 97 |
+ size: 1155103 |
|
| 98 |
+ sdk_relative: true |
|
| 99 |
+ - mtime: 1772016666000000000 |
|
| 100 |
+ path: 'System/Library/Frameworks/SwiftData.framework/Modules/SwiftData.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 101 |
+ size: 68255 |
|
| 102 |
+ sdk_relative: true |
|
| 103 |
+version: 1 |
|
| 104 |
+... |
|
@@ -0,0 +1,16 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/SwiftOnoneSupport.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723916000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/SwiftOnoneSupport.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 18520 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1771993742000000000 |
|
| 12 |
+ path: 'usr/lib/swift/SwiftOnoneSupport.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 13 |
+ size: 1412 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+version: 1 |
|
| 16 |
+... |
|
@@ -0,0 +1,48 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/System.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723941000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/System.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 401652 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1771993793000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 4364 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775468000000000 |
|
| 32 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 19538 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771993759000000000 |
|
| 36 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 37 |
+ size: 280496 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1771996850000000000 |
|
| 40 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 41 |
+ size: 22988 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1771941054000000000 |
|
| 44 |
+ path: 'usr/lib/swift/System.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 45 |
+ size: 95429 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+version: 1 |
|
| 48 |
+... |
|
@@ -0,0 +1,72 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/XPC.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723956000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/XPC.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 117708 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+ - mtime: 1771993793000000000 |
|
| 28 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 29 |
+ size: 4364 |
|
| 30 |
+ sdk_relative: true |
|
| 31 |
+ - mtime: 1772775468000000000 |
|
| 32 |
+ path: 'usr/lib/swift/Darwin.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 33 |
+ size: 19538 |
|
| 34 |
+ sdk_relative: true |
|
| 35 |
+ - mtime: 1771712577000000000 |
|
| 36 |
+ path: 'usr/include/ObjectiveC.apinotes' |
|
| 37 |
+ size: 11147 |
|
| 38 |
+ sdk_relative: true |
|
| 39 |
+ - mtime: 1771712453000000000 |
|
| 40 |
+ path: 'usr/include/Dispatch.apinotes' |
|
| 41 |
+ size: 19 |
|
| 42 |
+ sdk_relative: true |
|
| 43 |
+ - mtime: 1772774440000000000 |
|
| 44 |
+ path: 'usr/include/XPC.apinotes' |
|
| 45 |
+ size: 123 |
|
| 46 |
+ sdk_relative: true |
|
| 47 |
+ - mtime: 1771993759000000000 |
|
| 48 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 49 |
+ size: 280496 |
|
| 50 |
+ sdk_relative: true |
|
| 51 |
+ - mtime: 1771996850000000000 |
|
| 52 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 53 |
+ size: 22988 |
|
| 54 |
+ sdk_relative: true |
|
| 55 |
+ - mtime: 1771941059000000000 |
|
| 56 |
+ path: 'System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 57 |
+ size: 167871 |
|
| 58 |
+ sdk_relative: true |
|
| 59 |
+ - mtime: 1771941037000000000 |
|
| 60 |
+ path: 'usr/lib/swift/ObjectiveC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 61 |
+ size: 6634 |
|
| 62 |
+ sdk_relative: true |
|
| 63 |
+ - mtime: 1772016308000000000 |
|
| 64 |
+ path: 'usr/lib/swift/Dispatch.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 65 |
+ size: 57504 |
|
| 66 |
+ sdk_relative: true |
|
| 67 |
+ - mtime: 1771941462000000000 |
|
| 68 |
+ path: 'usr/lib/swift/XPC.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 69 |
+ size: 45108 |
|
| 70 |
+ sdk_relative: true |
|
| 71 |
+version: 1 |
|
| 72 |
+... |
|
@@ -0,0 +1,16 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723916000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 23712 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1771993793000000000 |
|
| 12 |
+ path: 'usr/lib/swift/_Builtin_float.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 13 |
+ size: 4364 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+version: 1 |
|
| 16 |
+... |
|
@@ -0,0 +1,16 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_Concurrency.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723928000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_Concurrency.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 748688 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1771993759000000000 |
|
| 12 |
+ path: 'usr/lib/swift/_Concurrency.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 13 |
+ size: 280496 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+version: 1 |
|
| 16 |
+... |
|
@@ -0,0 +1,16 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723921000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 92184 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775450000000000 |
|
| 12 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 13 |
+ size: 18804 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+version: 1 |
|
| 16 |
+... |
|
@@ -0,0 +1,24 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723923000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 23252 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+version: 1 |
|
| 24 |
+... |
|
@@ -0,0 +1,28 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723924000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 20560 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1772775407000000000 |
|
| 12 |
+ path: 'usr/include/_DarwinFoundation2.apinotes' |
|
| 13 |
+ size: 1145 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+ - mtime: 1772775450000000000 |
|
| 16 |
+ path: 'usr/lib/swift/_DarwinFoundation1.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 17 |
+ size: 18804 |
|
| 18 |
+ sdk_relative: true |
|
| 19 |
+ - mtime: 1772775454000000000 |
|
| 20 |
+ path: 'usr/lib/swift/_DarwinFoundation2.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 21 |
+ size: 2676 |
|
| 22 |
+ sdk_relative: true |
|
| 23 |
+ - mtime: 1772775458000000000 |
|
| 24 |
+ path: 'usr/lib/swift/_DarwinFoundation3.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 25 |
+ size: 1572 |
|
| 26 |
+ sdk_relative: true |
|
| 27 |
+version: 1 |
|
| 28 |
+... |
|
@@ -0,0 +1,16 @@ |
||
| 1 |
+--- |
|
| 2 |
+path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 3 |
+dependencies: |
|
| 4 |
+ - mtime: 1775723919000000000 |
|
| 5 |
+ path: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/26.4/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftmodule' |
|
| 6 |
+ size: 84168 |
|
| 7 |
+ - mtime: 1771993359000000000 |
|
| 8 |
+ path: 'usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 9 |
+ size: 2193648 |
|
| 10 |
+ sdk_relative: true |
|
| 11 |
+ - mtime: 1771996850000000000 |
|
| 12 |
+ path: 'usr/lib/swift/_StringProcessing.swiftmodule/arm64e-apple-macos.swiftinterface' |
|
| 13 |
+ size: 22988 |
|
| 14 |
+ sdk_relative: true |
|
| 15 |
+version: 1 |
|
| 16 |
+... |
|
@@ -47,7 +47,11 @@ final class HealthKitService {
|
||
| 47 | 47 |
// MARK: - Snapshot creation |
| 48 | 48 |
|
| 49 | 49 |
@MainActor |
| 50 |
- func createSnapshot(in context: ModelContext, selectedTypeIDs: Set<String>) async throws -> HealthSnapshot {
|
|
| 50 |
+ func createSnapshot( |
|
| 51 |
+ in context: ModelContext, |
|
| 52 |
+ selectedTypeIDs: Set<String>, |
|
| 53 |
+ onTypeCompleted: ((TypeCount) -> Void)? = nil |
|
| 54 |
+ ) async throws -> HealthSnapshot {
|
|
| 51 | 55 |
let active = Self.allTypes.filter { selectedTypeIDs.contains($0.id) }
|
| 52 | 56 |
let deviceResolution = KeychainService.resolveDeviceID(swiftDataStoreIsEmpty: isStoreEmpty(context: context)) |
| 53 | 57 |
|
@@ -62,7 +66,7 @@ final class HealthKitService {
|
||
| 62 | 66 |
snapshot.yearlyCountTimezoneIdentifier = TimeZone.current.identifier |
| 63 | 67 |
context.insert(snapshot) |
| 64 | 68 |
|
| 65 |
- let typeCounts = await fetchAllTypeCounts(for: active, snapshot: snapshot) |
|
| 69 |
+ let typeCounts = await fetchAllTypeCounts(for: active, snapshot: snapshot, onTypeCompleted: onTypeCompleted) |
|
| 66 | 70 |
|
| 67 | 71 |
// Invariant assertions before save — debug asserts + release silent correction |
| 68 | 72 |
for tc in typeCounts {
|
@@ -178,7 +182,11 @@ final class HealthKitService {
|
||
| 178 | 182 |
|
| 179 | 183 |
// MARK: - Per-type fetch pipeline |
| 180 | 184 |
|
| 181 |
- private func fetchAllTypeCounts(for active: [MonitoredType], snapshot: HealthSnapshot) async -> [TypeCount] {
|
|
| 185 |
+ private func fetchAllTypeCounts( |
|
| 186 |
+ for active: [MonitoredType], |
|
| 187 |
+ snapshot: HealthSnapshot, |
|
| 188 |
+ onTypeCompleted: ((TypeCount) -> Void)? = nil |
|
| 189 |
+ ) async -> [TypeCount] {
|
|
| 182 | 190 |
var results: [TypeCount] = [] |
| 183 | 191 |
|
| 184 | 192 |
// Fetch in batches to cap concurrent HK queries |
@@ -204,6 +212,7 @@ final class HealthKitService {
|
||
| 204 | 212 |
for await tc in group {
|
| 205 | 213 |
tc.snapshot = snapshot |
| 206 | 214 |
snapshot.typeCounts?.append(tc) |
| 215 |
+ onTypeCompleted?(tc) |
|
| 207 | 216 |
results.append(tc) |
| 208 | 217 |
} |
| 209 | 218 |
} |
@@ -1,12 +1,29 @@ |
||
| 1 | 1 |
import Foundation |
| 2 | 2 |
import SwiftData |
| 3 | 3 |
|
| 4 |
+struct TypeProgressEntry: Identifiable {
|
|
| 5 |
+ let id: String |
|
| 6 |
+ let displayName: String |
|
| 7 |
+ var status: Status |
|
| 8 |
+ |
|
| 9 |
+ enum Status {
|
|
| 10 |
+ case pending |
|
| 11 |
+ case complete(Int) // record count |
|
| 12 |
+ case unauthorized |
|
| 13 |
+ case failed(String) // error reason |
|
| 14 |
+ } |
|
| 15 |
+} |
|
| 16 |
+ |
|
| 4 | 17 |
@Observable |
| 5 | 18 |
final class DashboardViewModel {
|
| 6 | 19 |
var isRequestingAuth = false |
| 7 | 20 |
var isCreatingSnapshot = false |
| 8 | 21 |
var authError: String? |
| 9 | 22 |
var snapshotError: String? |
| 23 |
+ var fetchProgress: [TypeProgressEntry] = [] |
|
| 24 |
+ var showProgressSheet = false |
|
| 25 |
+ var fetchStartTime: Date? |
|
| 26 |
+ var lastSnapshotQuality: SnapshotQuality? = nil |
|
| 10 | 27 |
|
| 11 | 28 |
private let healthKit = HealthKitService.shared |
| 12 | 29 |
private let diffService = SnapshotDiffService.shared |
@@ -25,11 +42,49 @@ final class DashboardViewModel {
|
||
| 25 | 42 |
func createSnapshot(context: ModelContext, selectedTypeIDs: Set<String>) async {
|
| 26 | 43 |
isCreatingSnapshot = true |
| 27 | 44 |
snapshotError = nil |
| 45 |
+ showProgressSheet = true |
|
| 46 |
+ fetchStartTime = Date() |
|
| 47 |
+ |
|
| 48 |
+ let monitoredTypes = HealthKitService.allTypes |
|
| 49 |
+ .filter { selectedTypeIDs.contains($0.id) }
|
|
| 50 |
+ .sorted { $0.displayName < $1.displayName }
|
|
| 51 |
+ |
|
| 52 |
+ fetchProgress = monitoredTypes.map { type in
|
|
| 53 |
+ TypeProgressEntry(id: type.id, displayName: type.displayName, status: .pending) |
|
| 54 |
+ } |
|
| 55 |
+ |
|
| 28 | 56 |
defer { isCreatingSnapshot = false }
|
| 57 |
+ |
|
| 29 | 58 |
do {
|
| 30 |
- _ = try await healthKit.createSnapshot(in: context, selectedTypeIDs: selectedTypeIDs) |
|
| 59 |
+ _ = try await healthKit.createSnapshot( |
|
| 60 |
+ in: context, |
|
| 61 |
+ selectedTypeIDs: selectedTypeIDs, |
|
| 62 |
+ onTypeCompleted: { [weak self] typeCount in
|
|
| 63 |
+ Task { @MainActor in
|
|
| 64 |
+ self?.updateProgress(for: typeCount) |
|
| 65 |
+ } |
|
| 66 |
+ } |
|
| 67 |
+ ) |
|
| 68 |
+ lastSnapshotQuality = .complete |
|
| 31 | 69 |
} catch {
|
| 32 | 70 |
snapshotError = error.localizedDescription |
| 71 |
+ lastSnapshotQuality = .failed |
|
| 72 |
+ } |
|
| 73 |
+ } |
|
| 74 |
+ |
|
| 75 |
+ @MainActor |
|
| 76 |
+ private func updateProgress(for typeCount: TypeCount) {
|
|
| 77 |
+ if let index = fetchProgress.firstIndex(where: { $0.id == typeCount.typeIdentifier }) {
|
|
| 78 |
+ let status: TypeProgressEntry.Status |
|
| 79 |
+ switch typeCount.quality {
|
|
| 80 |
+ case .complete: |
|
| 81 |
+ status = .complete(typeCount.count) |
|
| 82 |
+ case .unauthorized: |
|
| 83 |
+ status = .unauthorized |
|
| 84 |
+ case .failed, .partial, .loading: |
|
| 85 |
+ status = .failed("Failed")
|
|
| 86 |
+ } |
|
| 87 |
+ fetchProgress[index].status = status |
|
| 33 | 88 |
} |
| 34 | 89 |
} |
| 35 | 90 |
|
@@ -37,6 +37,9 @@ struct DashboardView: View {
|
||
| 37 | 37 |
} |
| 38 | 38 |
.navigationTitle("HealthProbe")
|
| 39 | 39 |
} |
| 40 |
+ .sheet(isPresented: $viewModel.showProgressSheet) {
|
|
| 41 |
+ SnapshotProgressSheet(viewModel: viewModel) |
|
| 42 |
+ } |
|
| 40 | 43 |
} |
| 41 | 44 |
|
| 42 | 45 |
// MARK: - Sections |
@@ -0,0 +1,358 @@ |
||
| 1 |
+import SwiftUI |
|
| 2 |
+ |
|
| 3 |
+struct SnapshotProgressSheet: View {
|
|
| 4 |
+ @Bindable var viewModel: DashboardViewModel |
|
| 5 |
+ @State private var selectedTab: Tab = .progress |
|
| 6 |
+ |
|
| 7 |
+ enum Tab { case progress, report }
|
|
| 8 |
+ |
|
| 9 |
+ var body: some View {
|
|
| 10 |
+ NavigationStack {
|
|
| 11 |
+ VStack(spacing: 12) {
|
|
| 12 |
+ // Header |
|
| 13 |
+ HStack {
|
|
| 14 |
+ VStack(alignment: .leading, spacing: 2) {
|
|
| 15 |
+ Text("Health data snapshot")
|
|
| 16 |
+ .font(.headline) |
|
| 17 |
+ Text("\(viewModel.fetchProgress.count) metrics")
|
|
| 18 |
+ .font(.caption) |
|
| 19 |
+ .foregroundStyle(.secondary) |
|
| 20 |
+ } |
|
| 21 |
+ Spacer() |
|
| 22 |
+ Image(systemName: statusIcon) |
|
| 23 |
+ .font(.title3) |
|
| 24 |
+ .foregroundStyle(statusColor) |
|
| 25 |
+ } |
|
| 26 |
+ .padding(.horizontal) |
|
| 27 |
+ |
|
| 28 |
+ // Tab picker |
|
| 29 |
+ Picker("View", selection: $selectedTab) {
|
|
| 30 |
+ Text("Progress").tag(Tab.progress)
|
|
| 31 |
+ Text("Report").tag(Tab.report)
|
|
| 32 |
+ } |
|
| 33 |
+ .pickerStyle(.segmented) |
|
| 34 |
+ .padding(.horizontal) |
|
| 35 |
+ |
|
| 36 |
+ // Content |
|
| 37 |
+ Group {
|
|
| 38 |
+ switch selectedTab {
|
|
| 39 |
+ case .progress: |
|
| 40 |
+ ProgressTabView(entries: viewModel.fetchProgress, isComplete: !viewModel.isCreatingSnapshot) |
|
| 41 |
+ case .report: |
|
| 42 |
+ ReportTabView(entries: viewModel.fetchProgress, duration: duration) |
|
| 43 |
+ } |
|
| 44 |
+ } |
|
| 45 |
+ .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading) |
|
| 46 |
+ } |
|
| 47 |
+ .padding(.vertical, 12) |
|
| 48 |
+ } |
|
| 49 |
+ } |
|
| 50 |
+ |
|
| 51 |
+ private var statusIcon: String {
|
|
| 52 |
+ let unauthorized = viewModel.fetchProgress.filter { if case .unauthorized = $0.status { return true }; return false }
|
|
| 53 |
+ let failed = viewModel.fetchProgress.filter { if case .failed = $0.status { return true }; return false }
|
|
| 54 |
+ |
|
| 55 |
+ if viewModel.isCreatingSnapshot {
|
|
| 56 |
+ return "hourglass.circle" |
|
| 57 |
+ } else if unauthorized.isEmpty && failed.isEmpty {
|
|
| 58 |
+ return "checkmark.circle.fill" |
|
| 59 |
+ } else {
|
|
| 60 |
+ return "exclamationmark.circle.fill" |
|
| 61 |
+ } |
|
| 62 |
+ } |
|
| 63 |
+ |
|
| 64 |
+ private var statusColor: Color {
|
|
| 65 |
+ let unauthorized = viewModel.fetchProgress.filter { if case .unauthorized = $0.status { return true }; return false }
|
|
| 66 |
+ let failed = viewModel.fetchProgress.filter { if case .failed = $0.status { return true }; return false }
|
|
| 67 |
+ |
|
| 68 |
+ if viewModel.isCreatingSnapshot {
|
|
| 69 |
+ return .blue |
|
| 70 |
+ } else if unauthorized.isEmpty && failed.isEmpty {
|
|
| 71 |
+ return Color.healthyGreen |
|
| 72 |
+ } else if unauthorized.isEmpty {
|
|
| 73 |
+ return Color.criticalRed |
|
| 74 |
+ } else {
|
|
| 75 |
+ return Color.warningAmber |
|
| 76 |
+ } |
|
| 77 |
+ } |
|
| 78 |
+ |
|
| 79 |
+ private var duration: TimeInterval? {
|
|
| 80 |
+ guard let start = viewModel.fetchStartTime else { return nil }
|
|
| 81 |
+ return Date().timeIntervalSince(start) |
|
| 82 |
+ } |
|
| 83 |
+} |
|
| 84 |
+ |
|
| 85 |
+// MARK: - Progress Tab |
|
| 86 |
+private struct ProgressTabView: View {
|
|
| 87 |
+ let entries: [TypeProgressEntry] |
|
| 88 |
+ let isComplete: Bool |
|
| 89 |
+ |
|
| 90 |
+ var body: some View {
|
|
| 91 |
+ List {
|
|
| 92 |
+ ForEach(entries) { entry in
|
|
| 93 |
+ HStack(spacing: 12) {
|
|
| 94 |
+ icon(for: entry.status) |
|
| 95 |
+ .frame(width: 20) |
|
| 96 |
+ |
|
| 97 |
+ VStack(alignment: .leading, spacing: 2) {
|
|
| 98 |
+ Text(entry.displayName) |
|
| 99 |
+ .font(.subheadline) |
|
| 100 |
+ statusText(for: entry.status) |
|
| 101 |
+ .font(.caption) |
|
| 102 |
+ .foregroundStyle(.secondary) |
|
| 103 |
+ } |
|
| 104 |
+ |
|
| 105 |
+ Spacer() |
|
| 106 |
+ } |
|
| 107 |
+ .padding(.vertical, 4) |
|
| 108 |
+ } |
|
| 109 |
+ } |
|
| 110 |
+ .listStyle(.plain) |
|
| 111 |
+ } |
|
| 112 |
+ |
|
| 113 |
+ private func icon(for status: TypeProgressEntry.Status) -> some View {
|
|
| 114 |
+ Group {
|
|
| 115 |
+ switch status {
|
|
| 116 |
+ case .pending: |
|
| 117 |
+ Image(systemName: "circle") |
|
| 118 |
+ .foregroundStyle(.gray) |
|
| 119 |
+ case .complete: |
|
| 120 |
+ Image(systemName: "checkmark.circle.fill") |
|
| 121 |
+ .foregroundStyle(Color.healthyGreen) |
|
| 122 |
+ case .unauthorized: |
|
| 123 |
+ Image(systemName: "exclamationmark.triangle.fill") |
|
| 124 |
+ .foregroundStyle(Color.warningAmber) |
|
| 125 |
+ case .failed: |
|
| 126 |
+ Image(systemName: "xmark.circle.fill") |
|
| 127 |
+ .foregroundStyle(Color.criticalRed) |
|
| 128 |
+ } |
|
| 129 |
+ } |
|
| 130 |
+ } |
|
| 131 |
+ |
|
| 132 |
+ private func statusText(for status: TypeProgressEntry.Status) -> some View {
|
|
| 133 |
+ Group {
|
|
| 134 |
+ switch status {
|
|
| 135 |
+ case .pending: |
|
| 136 |
+ Text("Pending")
|
|
| 137 |
+ case .complete(let count): |
|
| 138 |
+ Text("\(count) records")
|
|
| 139 |
+ case .unauthorized: |
|
| 140 |
+ Text("Not authorized")
|
|
| 141 |
+ case .failed(let reason): |
|
| 142 |
+ Text(reason) |
|
| 143 |
+ } |
|
| 144 |
+ } |
|
| 145 |
+ } |
|
| 146 |
+} |
|
| 147 |
+ |
|
| 148 |
+// MARK: - Report Tab |
|
| 149 |
+private struct ReportTabView: View {
|
|
| 150 |
+ let entries: [TypeProgressEntry] |
|
| 151 |
+ let duration: TimeInterval? |
|
| 152 |
+ |
|
| 153 |
+ var body: some View {
|
|
| 154 |
+ ScrollView {
|
|
| 155 |
+ VStack(alignment: .leading, spacing: 16) {
|
|
| 156 |
+ // Summary |
|
| 157 |
+ VStack(alignment: .leading, spacing: 8) {
|
|
| 158 |
+ Text("SUMMARY")
|
|
| 159 |
+ .font(.caption.weight(.semibold)) |
|
| 160 |
+ .foregroundStyle(.secondary) |
|
| 161 |
+ |
|
| 162 |
+ let successful = entries.filter { if case .complete = $0.status { return true }; return false }
|
|
| 163 |
+ let unauthorized = entries.filter { if case .unauthorized = $0.status { return true }; return false }
|
|
| 164 |
+ let failed = entries.filter { if case .failed = $0.status { return true }; return false }
|
|
| 165 |
+ |
|
| 166 |
+ HStack {
|
|
| 167 |
+ Text("Successful: \(successful.count)")
|
|
| 168 |
+ Spacer() |
|
| 169 |
+ Text("\(successful.count)")
|
|
| 170 |
+ .fontWeight(.semibold) |
|
| 171 |
+ .foregroundStyle(Color.healthyGreen) |
|
| 172 |
+ } |
|
| 173 |
+ .font(.caption) |
|
| 174 |
+ |
|
| 175 |
+ if !unauthorized.isEmpty {
|
|
| 176 |
+ HStack {
|
|
| 177 |
+ Text("Not authorized: \(unauthorized.count)")
|
|
| 178 |
+ Spacer() |
|
| 179 |
+ Text("\(unauthorized.count)")
|
|
| 180 |
+ .fontWeight(.semibold) |
|
| 181 |
+ .foregroundStyle(Color.warningAmber) |
|
| 182 |
+ } |
|
| 183 |
+ .font(.caption) |
|
| 184 |
+ } |
|
| 185 |
+ |
|
| 186 |
+ if !failed.isEmpty {
|
|
| 187 |
+ HStack {
|
|
| 188 |
+ Text("Failed: \(failed.count)")
|
|
| 189 |
+ Spacer() |
|
| 190 |
+ Text("\(failed.count)")
|
|
| 191 |
+ .fontWeight(.semibold) |
|
| 192 |
+ .foregroundStyle(Color.criticalRed) |
|
| 193 |
+ } |
|
| 194 |
+ .font(.caption) |
|
| 195 |
+ } |
|
| 196 |
+ |
|
| 197 |
+ if let duration {
|
|
| 198 |
+ HStack {
|
|
| 199 |
+ Text("Duration:")
|
|
| 200 |
+ Spacer() |
|
| 201 |
+ Text(formatDuration(duration)) |
|
| 202 |
+ .fontWeight(.semibold) |
|
| 203 |
+ .foregroundStyle(.secondary) |
|
| 204 |
+ } |
|
| 205 |
+ .font(.caption) |
|
| 206 |
+ } |
|
| 207 |
+ } |
|
| 208 |
+ .padding(12) |
|
| 209 |
+ .background(Color(.systemGray6)) |
|
| 210 |
+ .cornerRadius(8) |
|
| 211 |
+ |
|
| 212 |
+ // Unauthorized metrics advice |
|
| 213 |
+ let unauthorized = entries.filter { if case .unauthorized = $0.status { return true }; return false }
|
|
| 214 |
+ if !unauthorized.isEmpty {
|
|
| 215 |
+ VStack(alignment: .leading, spacing: 8) {
|
|
| 216 |
+ Label("Permission required", systemImage: "exclamationmark.circle.fill")
|
|
| 217 |
+ .font(.subheadline.weight(.semibold)) |
|
| 218 |
+ .foregroundStyle(Color.warningAmber) |
|
| 219 |
+ |
|
| 220 |
+ Text("\(unauthorized.count) metric\(unauthorized.count == 1 ? "" : "s") excluded — enable in Health app")
|
|
| 221 |
+ .font(.caption) |
|
| 222 |
+ .foregroundStyle(.secondary) |
|
| 223 |
+ |
|
| 224 |
+ VStack(alignment: .leading, spacing: 8) {
|
|
| 225 |
+ ForEach(unauthorized) { entry in
|
|
| 226 |
+ VStack(alignment: .leading, spacing: 4) {
|
|
| 227 |
+ Text(entry.displayName) |
|
| 228 |
+ .font(.caption.weight(.semibold)) |
|
| 229 |
+ Text("Health app → Settings → Privacy → Health → HealthProbe")
|
|
| 230 |
+ .font(.caption2) |
|
| 231 |
+ .foregroundStyle(.secondary) |
|
| 232 |
+ } |
|
| 233 |
+ .padding(8) |
|
| 234 |
+ .background(Color(.systemGray6)) |
|
| 235 |
+ .cornerRadius(6) |
|
| 236 |
+ } |
|
| 237 |
+ } |
|
| 238 |
+ } |
|
| 239 |
+ } |
|
| 240 |
+ |
|
| 241 |
+ // Failed metrics |
|
| 242 |
+ let failed = entries.filter { if case .failed = $0.status { return true }; return false }
|
|
| 243 |
+ if !failed.isEmpty {
|
|
| 244 |
+ VStack(alignment: .leading, spacing: 8) {
|
|
| 245 |
+ Label("Errors", systemImage: "xmark.circle.fill")
|
|
| 246 |
+ .font(.subheadline.weight(.semibold)) |
|
| 247 |
+ .foregroundStyle(Color.criticalRed) |
|
| 248 |
+ |
|
| 249 |
+ VStack(alignment: .leading, spacing: 8) {
|
|
| 250 |
+ ForEach(failed) { entry in
|
|
| 251 |
+ VStack(alignment: .leading, spacing: 2) {
|
|
| 252 |
+ Text(entry.displayName) |
|
| 253 |
+ .font(.caption.weight(.semibold)) |
|
| 254 |
+ if case .failed(let reason) = entry.status {
|
|
| 255 |
+ Text(reason) |
|
| 256 |
+ .font(.caption2) |
|
| 257 |
+ .foregroundStyle(.secondary) |
|
| 258 |
+ } |
|
| 259 |
+ } |
|
| 260 |
+ .padding(8) |
|
| 261 |
+ .background(Color(.systemGray6)) |
|
| 262 |
+ .cornerRadius(6) |
|
| 263 |
+ } |
|
| 264 |
+ } |
|
| 265 |
+ } |
|
| 266 |
+ } |
|
| 267 |
+ |
|
| 268 |
+ // All metrics list |
|
| 269 |
+ VStack(alignment: .leading, spacing: 8) {
|
|
| 270 |
+ Text("ALL METRICS")
|
|
| 271 |
+ .font(.caption.weight(.semibold)) |
|
| 272 |
+ .foregroundStyle(.secondary) |
|
| 273 |
+ |
|
| 274 |
+ VStack(spacing: 6) {
|
|
| 275 |
+ ForEach(entries.sorted { $0.displayName < $1.displayName }) { entry in
|
|
| 276 |
+ HStack(spacing: 8) {
|
|
| 277 |
+ icon(for: entry.status) |
|
| 278 |
+ .frame(width: 14) |
|
| 279 |
+ |
|
| 280 |
+ Text(entry.displayName) |
|
| 281 |
+ .font(.caption) |
|
| 282 |
+ |
|
| 283 |
+ Spacer() |
|
| 284 |
+ |
|
| 285 |
+ statusLabel(for: entry.status) |
|
| 286 |
+ .font(.caption2) |
|
| 287 |
+ .foregroundStyle(.secondary) |
|
| 288 |
+ } |
|
| 289 |
+ .padding(.vertical, 6) |
|
| 290 |
+ .padding(.horizontal, 10) |
|
| 291 |
+ .background(Color(.systemGray6)) |
|
| 292 |
+ .cornerRadius(6) |
|
| 293 |
+ } |
|
| 294 |
+ } |
|
| 295 |
+ } |
|
| 296 |
+ } |
|
| 297 |
+ .padding(12) |
|
| 298 |
+ } |
|
| 299 |
+ } |
|
| 300 |
+ |
|
| 301 |
+ private func icon(for status: TypeProgressEntry.Status) -> some View {
|
|
| 302 |
+ Group {
|
|
| 303 |
+ switch status {
|
|
| 304 |
+ case .complete: |
|
| 305 |
+ Image(systemName: "checkmark.circle.fill") |
|
| 306 |
+ .foregroundStyle(Color.healthyGreen) |
|
| 307 |
+ case .unauthorized: |
|
| 308 |
+ Image(systemName: "exclamationmark.triangle.fill") |
|
| 309 |
+ .foregroundStyle(Color.warningAmber) |
|
| 310 |
+ case .failed: |
|
| 311 |
+ Image(systemName: "xmark.circle.fill") |
|
| 312 |
+ .foregroundStyle(Color.criticalRed) |
|
| 313 |
+ case .pending: |
|
| 314 |
+ Image(systemName: "circle") |
|
| 315 |
+ .foregroundStyle(.gray) |
|
| 316 |
+ } |
|
| 317 |
+ } |
|
| 318 |
+ } |
|
| 319 |
+ |
|
| 320 |
+ private func statusLabel(for status: TypeProgressEntry.Status) -> some View {
|
|
| 321 |
+ Group {
|
|
| 322 |
+ switch status {
|
|
| 323 |
+ case .complete(let count): |
|
| 324 |
+ Text("\(count) records")
|
|
| 325 |
+ case .unauthorized: |
|
| 326 |
+ Text("Not authorized")
|
|
| 327 |
+ case .failed(let reason): |
|
| 328 |
+ Text(reason) |
|
| 329 |
+ case .pending: |
|
| 330 |
+ Text("Pending")
|
|
| 331 |
+ } |
|
| 332 |
+ } |
|
| 333 |
+ } |
|
| 334 |
+ |
|
| 335 |
+ private func formatDuration(_ seconds: TimeInterval) -> String {
|
|
| 336 |
+ if seconds < 60 {
|
|
| 337 |
+ return String(format: "%.1fs", seconds) |
|
| 338 |
+ } else {
|
|
| 339 |
+ let minutes = Int(seconds) / 60 |
|
| 340 |
+ let secs = Int(seconds) % 60 |
|
| 341 |
+ return String(format: "%dm %ds", minutes, secs) |
|
| 342 |
+ } |
|
| 343 |
+ } |
|
| 344 |
+} |
|
| 345 |
+ |
|
| 346 |
+#Preview {
|
|
| 347 |
+ @Previewable @State var viewModel = DashboardViewModel() |
|
| 348 |
+ |
|
| 349 |
+ SnapshotProgressSheet(viewModel: viewModel) |
|
| 350 |
+ .onAppear {
|
|
| 351 |
+ viewModel.fetchProgress = [ |
|
| 352 |
+ TypeProgressEntry(id: "steps", displayName: "Steps", status: .complete(1234)), |
|
| 353 |
+ TypeProgressEntry(id: "activeEnergy", displayName: "Active Energy", status: .unauthorized), |
|
| 354 |
+ TypeProgressEntry(id: "heartRate", displayName: "Heart Rate", status: .complete(5678)), |
|
| 355 |
+ TypeProgressEntry(id: "sleep", displayName: "Sleep", status: .failed("Timeout")),
|
|
| 356 |
+ ] |
|
| 357 |
+ } |
|
| 358 |
+} |
|