-
Notifications
You must be signed in to change notification settings - Fork 514
HealthKit iOS xcode16.1 b2
Alex Soto edited this page Oct 24, 2024
·
2 revisions
#HealthKit.framework https://github.com/xamarin/xamarin-macios/pull/21510
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h 2024-08-03 12:57:08
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h 2024-08-29 23:25:39
@@ -16,7 +16,8 @@
@class HKActivitySummary
@abstract An object that represents a summary of a user's activity for a given day.
*/
-HK_EXTERN API_AVAILABLE(ios(9.3), watchos(2.2), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+API_AVAILABLE(ios(9.3), watchos(2.2), macCatalyst(13.0), macos(13.0))
@interface HKActivitySummary : NSObject <NSSecureCoding, NSCopying>
/**
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright (c) 2015-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
@class HKActivitySummary;
@@ -12,6 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKActivitySummaryQueryDescriptor", ios(9.3, API_TO_BE_DEPRECATED), watchos(2.2, API_TO_BE_DEPRECATED));
#else
@@ -25,7 +28,7 @@
@discussion This property may not be modified once the query has been executed. If this property is nonnull, then
the query must be manually stopped.
*/
-@property (nonatomic, copy, nullable) void(^updateHandler)(HKActivitySummaryQuery *query, NSArray<HKActivitySummary *> * _Nullable updatedActivitySummaries, NSError * _Nullable error);
+@property (nonatomic, copy, nullable) void(^NS_SWIFT_SENDABLE updateHandler)(HKActivitySummaryQuery *query, NSArray<HKActivitySummary *> * _Nullable updatedActivitySummaries, NSError * _Nullable error);
/*!
@method initWithPredicate:resultsHandler:
@@ -38,7 +41,7 @@
@param handler The block to invoke with results when the query has finished.
*/
- (instancetype)initWithPredicate:(nullable NSPredicate *)predicate
- resultsHandler:(void(^)(HKActivitySummaryQuery *query, NSArray<HKActivitySummary *> * _Nullable activitySummaries, NSError * _Nullable error))handler;
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKActivitySummaryQuery *query, NSArray<HKActivitySummary *> * _Nullable activitySummaries, NSError * _Nullable error))handler;
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h 2024-08-03 11:02:03
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h 2024-08-28 18:24:11
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
#import <HealthKit/HKQueryAnchor.h>
#import <HealthKit/HKQueryDescriptor.h>
@@ -21,6 +23,7 @@
database.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKAnchoredObjectQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
#else
@@ -34,7 +37,7 @@
@discussion This property may not be modified once the query has been executed. It may only be set if the query has
no limit.
*/
-@property (nonatomic, copy, nullable) void(^updateHandler)(HKAnchoredObjectQuery *query, NSArray<__kindof HKSample *> * _Nullable addedObjects, NSArray<HKDeletedObject *> * _Nullable deletedObjects, HKQueryAnchor * _Nullable newAnchor, NSError * _Nullable error) API_AVAILABLE(ios(9.0), watchos(2.0));
+@property (nonatomic, copy, nullable) void(^NS_SWIFT_SENDABLE updateHandler)(HKAnchoredObjectQuery *query, NSArray<__kindof HKSample *> * _Nullable addedObjects, NSArray<HKDeletedObject *> * _Nullable deletedObjects, HKQueryAnchor * _Nullable newAnchor, NSError * _Nullable error) API_AVAILABLE(ios(9.0), watchos(2.0));
/*!
@method initWithType:predicate:anchor:limit:resultsHandler:
@@ -56,13 +59,13 @@
predicate:(nullable NSPredicate *)predicate
anchor:(nullable HKQueryAnchor *)anchor
limit:(NSUInteger)limit
- resultsHandler:(void(^)(HKAnchoredObjectQuery *query, NSArray<__kindof HKSample *> * _Nullable sampleObjects, NSArray<HKDeletedObject *> * _Nullable deletedObjects, HKQueryAnchor * _Nullable newAnchor, NSError * _Nullable error))handler API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0));
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKAnchoredObjectQuery *query, NSArray<__kindof HKSample *> * _Nullable sampleObjects, NSArray<HKDeletedObject *> * _Nullable deletedObjects, HKQueryAnchor * _Nullable newAnchor, NSError * _Nullable error))handler API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0));
- (instancetype)initWithType:(HKSampleType *)type
predicate:(nullable NSPredicate *)predicate
anchor:(NSUInteger)anchor
limit:(NSUInteger)limit
- completionHandler:(void(^)(HKAnchoredObjectQuery *query, NSArray<__kindof HKSample *> * __nullable results, NSUInteger newAnchor, NSError * __nullable error))handler API_DEPRECATED_WITH_REPLACEMENT("initWithType:predicate:anchor:limit:resultsHandler:", ios(8.0, 9.0));
+ completionHandler:(void(^NS_SWIFT_SENDABLE)(HKAnchoredObjectQuery *query, NSArray<__kindof HKSample *> * __nullable results, NSUInteger newAnchor, NSError * __nullable error))handler API_DEPRECATED_WITH_REPLACEMENT("initWithType:predicate:anchor:limit:resultsHandler:", ios(8.0, 9.0));
/*!
@method initWithQueryDescriptors:anchor:limit:resultsHandler
@@ -83,7 +86,7 @@
- (instancetype)initWithQueryDescriptors:(NSArray<HKQueryDescriptor *> *)queryDescriptors
anchor:(nullable HKQueryAnchor *)anchor
limit:(NSInteger)limit
- resultsHandler:(void(^)(HKAnchoredObjectQuery *query, NSArray<__kindof HKSample *> * _Nullable sampleObjects, NSArray<HKDeletedObject *> * _Nullable deletedObjects, HKQueryAnchor * _Nullable newAnchor, NSError * _Nullable error))handler API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0));
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKAnchoredObjectQuery *query, NSArray<__kindof HKSample *> * _Nullable sampleObjects, NSArray<HKDeletedObject *> * _Nullable deletedObjects, HKQueryAnchor * _Nullable newAnchor, NSError * _Nullable error))handler API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0));
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleSleepingBreathingDisturbancesClassification.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleSleepingBreathingDisturbancesClassification.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleSleepingBreathingDisturbancesClassification.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleSleepingBreathingDisturbancesClassification.h 1969-12-31 19:00:00
@@ -1,38 +0,0 @@
-//
-// HKAppleSleepingBreathingDisturbancesClassification.h
-// HealthKit
-//
-// Copyright © 2022-2024 Apple. All rights reserved.
-//
-
-#import <HealthKit/HKDefines.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@class HKQuantity;
-
-/*!
- @enum HKAppleSleepingBreathingDisturbancesClassification
- @abstract This enumerated type is used to represent a classification of the user's breathing disturbances
- @constant HKAppleSleepingBreathingDisturbancesClassificationNotElevated BD level is not elevated
- @constant HKAppleSleepingBreathingDisturbancesClassificationElevated BD level is elevated
- */
-typedef NS_ENUM(NSInteger, HKAppleSleepingBreathingDisturbancesClassification) {
- HKAppleSleepingBreathingDisturbancesClassificationNotElevated,
- HKAppleSleepingBreathingDisturbancesClassificationElevated,
-} API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0));
-
-/*!
- @abstract Determines the Breathing Disturbances classification for the provided BD value.
- @param value Breathing Disturbances quantity
- @return A Breathing Disturbances classification if one can be created, otherwise nil.
- */
-HK_EXTERN NSNumber * _Nullable HKAppleSleepingBreathingDisturbancesClassificationForQuantity(HKQuantity *value) API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0)) NS_REFINED_FOR_SWIFT;
-
-/*!
- @abstract Retrieves the minimum quantity for a Breathing Disturbances classification.
- @param classification Breathing Disturbances classification for desired minimum value.
- */
-HK_EXTERN HKQuantity * HKAppleSleepingBreathingDisturbancesMinimumQuantityForClassification(HKAppleSleepingBreathingDisturbancesClassification classification) API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0)) NS_SWIFT_NAME(getter:HKAppleSleepingBreathingDisturbancesClassification.minimum(self:));
-
-NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h 2024-09-04 04:57:54
@@ -5,6 +5,7 @@
// Copyright © 2021-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h 2024-09-04 04:57:55
@@ -15,7 +15,9 @@
@class HKAttachment
@discussion An HKAttachment represents a file attachment stored in the HealthKit database.
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKAttachment : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h 2024-08-15 23:51:14
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h 2024-09-04 05:13:15
@@ -17,7 +17,8 @@
@class HKAttachmentStore
@discussion The HKAttachmentStore class provides an interface for accessing and storing HKAttachment objects.
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKAttachmentStore : NSObject
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h 2024-09-04 04:57:54
@@ -7,6 +7,8 @@
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuantity.h>
#import <HealthKit/HKSample.h>
@@ -18,7 +20,9 @@
@class HKAudiogramSample
@abstract A sample object representing the results of a standard hearing test.
*/
-HK_EXTERN API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
@interface HKAudiogramSample : HKSample
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h 2024-08-15 23:42:53
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h 2024-09-04 04:57:54
@@ -14,7 +14,9 @@
NS_ASSUME_NONNULL_BEGIN
-HK_EXTERN API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
@interface HKAudiogramSensitivityPoint : NSObject <NSSecureCoding>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h 2024-08-15 23:40:31
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h 2024-09-06 01:15:00
@@ -8,6 +8,8 @@
// Consolidated Clinical Document records.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKDocumentSample.h>
NS_ASSUME_NONNULL_BEGIN
@@ -18,7 +20,9 @@
@class HKCDADocumentSample
@abstract A sample object representing a CDA document.
*/
-HK_EXTERN NS_SWIFT_SENDABLE API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(13.0)) API_UNAVAILABLE(watchos)
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(13.0)) API_UNAVAILABLE(watchos)
@interface HKCDADocumentSample : HKDocumentSample
/*!
@@ -54,7 +58,9 @@
@end
-HK_EXTERN NS_SWIFT_SENDABLE API_AVAILABLE(ios(11.0), macCatalyst(13.0), macos(13.0)) API_UNAVAILABLE(watchos)
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(11.0), macCatalyst(13.0), macos(13.0)) API_UNAVAILABLE(watchos)
@interface HKCDADocument : NSObject
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKObject.h>
#import <HealthKit/HKSample.h>
@@ -17,7 +19,9 @@
@abstract An HKObject subclass representing an category measurement
@discussion Category samples are samples that can be categorized into an enum of concrete values
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKCategorySample : HKSample
@property (readonly, strong) HKCategoryType *categoryType;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h 2024-09-04 04:57:55
@@ -15,7 +15,9 @@
@class HKBiologicalSexObject
@abstract A wrapper object for HKBiologicalSex enumeration.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKBiologicalSexObject : NSObject <NSCopying, NSSecureCoding>
@property (readonly) HKBiologicalSex biologicalSex;
@@ -26,7 +28,9 @@
@class HKBloodTypeObject
@abstract A wrapper object for HKBloodType enumeration.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKBloodTypeObject : NSObject <NSCopying, NSSecureCoding>
@property (readonly) HKBloodType bloodType;
@@ -37,7 +41,9 @@
@class HKFitzpatrickSkinTypeObject
@abstract A wrapper object for HKFitzpatrickSkinType enumeration.
*/
-HK_EXTERN API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKFitzpatrickSkinTypeObject : NSObject <NSCopying, NSSecureCoding>
@property (readonly) HKFitzpatrickSkinType skinType;
@@ -48,7 +54,9 @@
@class HKWheelchairUseObject
@abstract A wrapper object for HKWheelchairUse enumeration.
*/
-HK_EXTERN API_AVAILABLE(ios(10.0), watchos(3.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(10.0), watchos(3.0), macCatalyst(13.0), macos(13.0))
@interface HKWheelchairUseObject : NSObject <NSCopying, NSSecureCoding>
@property (readonly) HKWheelchairUse wheelchairUse;
@@ -59,7 +67,9 @@
@class HKActivityMoveModeObject
@abstract A wrapper object for HKActivityMoveMode enumeration.
*/
-HK_EXTERN API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0))
@interface HKActivityMoveModeObject : NSObject <NSCopying, NSSecureCoding>
@property (readonly) HKActivityMoveMode activityMoveMode;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalRecord.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalRecord.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalRecord.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalRecord.h 2024-09-04 04:57:56
@@ -5,6 +5,8 @@
// Copyright (c) 2018-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
@class HKClinicalType;
@@ -23,9 +25,9 @@
for a given sample. Use a combination of HKSource, FHIRResource.resourceType, and
FHIRResource.identifier instead.
*/
-HK_EXTERN NS_SWIFT_SENDABLE
-API_AVAILABLE(ios(12.0), macCatalyst(13.0), macos(13.0))
-__WATCHOS_PROHIBITED
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(12.0), macCatalyst(13.0), macos(13.0)) __WATCHOS_PROHIBITED
@interface HKClinicalRecord : HKSample <NSSecureCoding, NSCopying>
@property (readonly, copy) HKClinicalType *clinicalType;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h 2024-09-04 04:57:54
@@ -5,6 +5,7 @@
// Copyright (c) 2018-2024 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
#import <HealthKit/HKObjectType.h>
@@ -60,6 +61,7 @@
@abstract A type that identifies samples that contain clinical record data.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
API_AVAILABLE(ios(12.0), watchos(5.0), macCatalyst(13.0), macos(13.0))
@interface HKClinicalType : HKSampleType
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h 2024-09-04 04:57:55
@@ -6,6 +6,7 @@
//
#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKLensSpecification.h>
@class HKQuantity;
@@ -16,7 +17,9 @@
@class HKContactsLensSpecification
@abstract An object subclass representing lens specification for contacts
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKContactsLensSpecification : HKLensSpecification <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h 2024-09-04 04:57:56
@@ -18,7 +18,9 @@
@class HKContactsPrescription
@abstract An object representing a contacts prescription
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKContactsPrescription: HKVisionPrescription <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelation.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelation.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelation.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelation.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
NS_ASSUME_NONNULL_BEGIN
@@ -21,7 +23,9 @@
For example, systolic and diastolic blood pressure readings are typically presented together so these
readings should be saved with a correlation of type blood pressure.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKCorrelation : HKSample
@property (readonly) HKCorrelationType *correlationType;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelationQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelationQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelationQuery.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelationQuery.h 2024-09-04 04:57:54
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
NS_ASSUME_NONNULL_BEGIN
@@ -19,7 +21,9 @@
accepts a predicate to filter HKCorrelations and a dictionary of predicates to filter the
correlated samples.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKCorrelationQuery : HKQuery
@property (readonly, copy) HKCorrelationType *correlationType;
@@ -47,7 +51,7 @@
- (instancetype)initWithType:(HKCorrelationType *)correlationType
predicate:(nullable NSPredicate *)predicate
samplePredicates:(nullable NSDictionary<HKSampleType *, NSPredicate *> *)samplePredicates
- completion:(void(^)(HKCorrelationQuery *query, NSArray<HKCorrelation *> * _Nullable correlations, NSError * _Nullable error))completion;
+ completion:(void(^NS_SWIFT_SENDABLE)(HKCorrelationQuery *query, NSArray<HKCorrelation *> * _Nullable correlations, NSError * _Nullable error))completion;
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySample.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySample.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright © 2018 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuantitySample.h>
NS_ASSUME_NONNULL_BEGIN
@@ -15,7 +17,9 @@
@class HKCumulativeQuantitySample
@abstract An HKQuantitySample subclass representing a quantity measurement with cumulative aggregation style.
*/
-HK_EXTERN API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
@interface HKCumulativeQuantitySample : HKQuantitySample
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySeriesSample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySeriesSample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySeriesSample.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySeriesSample.h 2024-09-04 04:57:54
@@ -5,11 +5,15 @@
// Copyright © 2018-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKCumulativeQuantitySample.h>
+#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
-HK_EXTERN API_DEPRECATED_WITH_REPLACEMENT("HKCumulativeQuantitySample", ios(12.0, 13.0), watchos(5.0, 6.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_DEPRECATED_WITH_REPLACEMENT("HKCumulativeQuantitySample", ios(12.0, 13.0), watchos(5.0, 6.0))
@interface HKCumulativeQuantitySeriesSample : HKCumulativeQuantitySample
@property (readonly, copy) HKQuantity *sum;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h 2024-09-04 04:57:55
@@ -5,6 +5,7 @@
// Copyright (c) 2015-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -13,7 +14,9 @@
@class HKDeletedObject
@abstract A class representing an HKObject that was deleted from the HealtKit database.
*/
-HK_EXTERN API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKDeletedObject : NSObject <NSSecureCoding>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDevice.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDevice.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDevice.h 2024-08-03 11:02:03
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDevice.h 2024-08-28 18:24:11
@@ -5,6 +5,7 @@
// Copyright © 2015-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -67,7 +68,9 @@
-HK_EXTERN API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKDevice : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDiscreteQuantitySample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDiscreteQuantitySample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDiscreteQuantitySample.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDiscreteQuantitySample.h 2024-09-04 04:57:56
@@ -5,6 +5,8 @@
// Copyright © 2019-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuantitySample.h>
NS_ASSUME_NONNULL_BEGIN
@@ -16,7 +18,9 @@
@abstract An HKQuantitySample subclass representing a quantity measurement with
discrete aggregation style.
*/
-HK_EXTERN API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
@interface HKDiscreteQuantitySample : HKQuantitySample
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentQuery.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentQuery.h 2024-09-04 04:57:54
@@ -5,6 +5,8 @@
// Copyright (c) 2016-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
NS_ASSUME_NONNULL_BEGIN
@@ -17,7 +19,9 @@
@abstract A concrete subclass of HKQuery that provides an interface to retrieve documents from the Health store.
*/
-HK_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(13.0))
@interface HKDocumentQuery : HKQuery
/*!
@@ -68,7 +72,7 @@
limit:(NSUInteger)limit
sortDescriptors:(nullable NSArray<NSSortDescriptor *> *)sortDescriptors
includeDocumentData:(BOOL)includeDocumentData
- resultsHandler:(void(^)(HKDocumentQuery *query,
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKDocumentQuery *query,
NSArray<__kindof HKDocumentSample *> * _Nullable results,
BOOL done,
NSError * _Nullable error))resultsHandler;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentSample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentSample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentSample.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentSample.h 2024-09-04 04:57:54
@@ -5,6 +5,8 @@
// Copyright © 2016-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
NS_ASSUME_NONNULL_BEGIN
@@ -15,7 +17,9 @@
@class HKDocumentSample
@abstract An abstract class representing a health document.
*/
-HK_EXTERN API_AVAILABLE(ios(10.0), watchos(3.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(10.0), watchos(3.0), macCatalyst(13.0), macos(13.0))
@interface HKDocumentSample : HKSample
@property (readonly, strong) HKDocumentType *documentType;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogram.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogram.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogram.h 2024-08-15 23:51:14
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogram.h 2024-08-28 18:24:12
@@ -5,6 +5,8 @@
// Copyright © 2020-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
@class HKQuantity;
@@ -66,7 +68,9 @@
@abstract An HKElectrocardiogram is a collection of voltage values as waveforms
from one or more leads
*/
-HK_EXTERN API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0))
@interface HKElectrocardiogram : HKSample
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h 2024-09-04 04:57:56
@@ -5,6 +5,8 @@
// Copyright © 2020-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKElectrocardiogram.h>
#import <HealthKit/HKQuery.h>
@@ -15,7 +17,9 @@
@abstract An HKElectrocardiogramVoltageMeasurement contains voltage quantities for all leads at a single instance of measurement.
@discussion Each HKElectrocardiogramVoltageMeasurement object corresponds to the voltage quantities across all leads for a given instance in time.
*/
-HK_EXTERN API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0)) NS_SWIFT_NAME(HKElectrocardiogram.VoltageMeasurement)
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0)) NS_SWIFT_NAME(HKElectrocardiogram.VoltageMeasurement)
@interface HKElectrocardiogramVoltageMeasurement : NSObject <NSCopying>
/*!
@@ -39,6 +43,7 @@
@discussion Once instantiated, call HKHealthStore executeQuery to begin enumerating the HKElectrocardiogram voltage data.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKElectrocardiogramQueryDescriptor", ios(14.0, API_TO_BE_DEPRECATED), watchos(7.0, API_TO_BE_DEPRECATED));
#else
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRResource.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRResource.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRResource.h 2024-08-15 23:57:01
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRResource.h 2024-09-04 05:13:15
@@ -34,7 +34,9 @@
@class HKFHIRResource
@abstract The HKFHIRResource class encapsulates a FHIR (Fast Healthcare Interoperability Resources) resource.
*/
-HK_EXTERN NS_SWIFT_SENDABLE API_AVAILABLE(ios(12.0), macCatalyst(13.0), macos(13.0)) API_UNAVAILABLE(watchos)
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(12.0), macCatalyst(13.0), macos(13.0)) API_UNAVAILABLE(watchos)
@interface HKFHIRResource : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRVersion.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRVersion.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRVersion.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRVersion.h 2024-09-04 04:57:56
@@ -18,7 +18,9 @@
given resource is represented in. A FHIR version is associated with one FHIR release.
@see http://hl7.org/fhir/versions.html#versions
*/
-HK_EXTERN NS_SWIFT_SENDABLE API_AVAILABLE(ios(14.0), macCatalyst(14.0), macos(13.0)) API_UNAVAILABLE(watchos)
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(14.0), macCatalyst(14.0), macos(13.0)) API_UNAVAILABLE(watchos)
@interface HKFHIRVersion : NSObject <NSCopying, NSSecureCoding>
@property (nonatomic, assign, readonly) NSInteger majorVersion;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h 2024-09-04 04:57:55
@@ -6,6 +6,7 @@
//
#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKScoredAssessment.h>
NS_ASSUME_NONNULL_BEGIN
@@ -41,8 +42,8 @@
/// Represents the result of a GAD-7 assessment. Learn more about Pfizer's GAD-7 at https://support.apple.com/en-us/105070
HK_EXTERN
-API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
@interface HKGAD7Assessment : HKScoredAssessment
/// Answers on the GAD-7 assessment. There are exactly 7 answers, one for each multiple choice question. Each answer is of type `HKGAD7AssessmentAnswer`.
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h 2024-08-15 23:42:53
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h 2024-09-04 04:57:54
@@ -6,6 +6,7 @@
//
#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKLensSpecification.h>
@class HKQuantity;
@@ -17,7 +18,9 @@
@class HKGlassesLensSpecification
@abstract An object subclass representing lens specification for glasses
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKGlassesLensSpecification : HKLensSpecification <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h 2024-09-04 04:57:55
@@ -19,7 +19,9 @@
@class HKGlassesPrescription
@abstract An object subclass representing a glasses prescription
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKGlassesPrescription : HKVisionPrescription <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h 2024-08-15 23:40:33
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h 2024-08-28 18:24:12
@@ -5,6 +5,7 @@
// Copyright (c) 2013-2024 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKCharacteristicObjects.h>
#import <HealthKit/HKDefines.h>
@@ -31,8 +32,9 @@
@class HKHealthStore
@abstract The HKHealthStore class provides an interface for accessing and storing the user's health data.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKHealthStore : NSObject
/*!
@@ -149,21 +151,21 @@
This operation is performed asynchronously and the completion will be executed on an arbitrary
background queue.
*/
-- (void)saveObject:(HKObject *)object withCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
+- (void)saveObject:(HKObject *)object withCompletion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
/*!
@method saveObjects:withCompletion:
@abstract Saves an array of HKObjects.
@discussion See discussion of saveObject:withCompletion:.
*/
-- (void)saveObjects:(NSArray<HKObject *> *)objects withCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
+- (void)saveObjects:(NSArray<HKObject *> *)objects withCompletion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
/*!
@method deleteObject:withCompletion:
@abstract Deletes a single HKObject from the HealthKit database.
@discussion See deleteObjects:withCompletion:.
*/
-- (void)deleteObject:(HKObject *)object withCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
+- (void)deleteObject:(HKObject *)object withCompletion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
/*!
@method deleteObjects:withCompletion:
@@ -171,7 +173,7 @@
@discussion An application may only delete objects that it previously saved. This operation is performed
asynchronously and the completion will be executed on an arbitrary background queue.
*/
-- (void)deleteObjects:(NSArray<HKObject *> *)objects withCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0));
+- (void)deleteObjects:(NSArray<HKObject *> *)objects withCompletion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0));
/*!
@method deleteObjectsOfType:predicate:withCompletion:
@@ -179,7 +181,7 @@
@discussion An application may only delete objects that it previously saved. This operation is performed
asynchronously and the completion will be executed on an arbitrary background queue.
*/
-- (void)deleteObjectsOfType:(HKObjectType *)objectType predicate:(NSPredicate *)predicate withCompletion:(void (^)(BOOL success, NSUInteger deletedObjectCount, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0));
+- (void)deleteObjectsOfType:(HKObjectType *)objectType predicate:(NSPredicate *)predicate withCompletion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSUInteger deletedObjectCount, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0));
/*!
@method executeQuery:
@@ -216,7 +218,7 @@
- (void)splitTotalEnergy:(HKQuantity *)totalEnergy
startDate:(NSDate *)startDate
endDate:(NSDate *)endDate
- resultsHandler:(void(^)(HKQuantity * _Nullable restingEnergy, HKQuantity * _Nullable activeEnergy, NSError * _Nullable error))resultsHandler API_DEPRECATED("No longer supported", ios(9.0, 11.0), watchos(2.0, 4.0));
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKQuantity * _Nullable restingEnergy, HKQuantity * _Nullable activeEnergy, NSError * _Nullable error))resultsHandler API_DEPRECATED("No longer supported", ios(9.0, 11.0), watchos(2.0, 4.0));
- (nullable NSDate *)dateOfBirthWithError:(NSError **)error API_DEPRECATED_WITH_REPLACEMENT("dateOfBirthComponentsWithError:", ios(8.0, 10.0), watchos(2.0, 3.0));
@@ -281,7 +283,7 @@
permission to start a Live Activity from the background.
The assigned block will be executed on an arbitrary background queue.
*/
-@property (copy, nullable) void (^workoutSessionMirroringStartHandler)(HKWorkoutSession *mirroredSession) API_AVAILABLE(ios(17.0));
+@property (copy, nullable) void (^NS_SWIFT_SENDABLE workoutSessionMirroringStartHandler)(HKWorkoutSession *mirroredSession) API_AVAILABLE(ios(17.0));
/*!
@method addSamples:toWorkout:completion:
@@ -292,7 +294,7 @@
The workout provided must be one that has already been saved to HealthKit.
*/
-- (void)addSamples:(NSArray<HKSample *> *)samples toWorkout:(HKWorkout *)workout completion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_NAME(addSamples(_:to:)) NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_DEPRECATED("Use HKWorkoutBuilder", ios(8.0, 17.0), watchos(2.0, 10.0), macCatalyst(13.0, 16.0), macos(13.0, 14.0));
+- (void)addSamples:(NSArray<HKSample *> *)samples toWorkout:(HKWorkout *)workout completion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_NAME(addSamples(_:to:)) NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_DEPRECATED("Use HKWorkoutBuilder", ios(8.0, 17.0), watchos(2.0, 10.0), macCatalyst(13.0, 16.0), macos(13.0, 14.0));
/*!
@method startWorkoutSession:
@@ -337,14 +339,14 @@
protocol will be called with the HKWorkoutConfiguration as a parameter. The receiving Watch app can use
this configuration object to create an HKWorkoutSession and start it with -startWorkoutSession:.
*/
-- (void)startWatchAppWithWorkoutConfiguration:(HKWorkoutConfiguration *)workoutConfiguration completion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) NS_SWIFT_ASYNC_NAME(startWatchApp(toHandle:)) API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(13.0)) API_UNAVAILABLE(watchos);
+- (void)startWatchAppWithWorkoutConfiguration:(HKWorkoutConfiguration *)workoutConfiguration completion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) NS_SWIFT_ASYNC_NAME(startWatchApp(toHandle:)) API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(13.0)) API_UNAVAILABLE(watchos);
/*!
@method recoverActiveWorkoutSessionWithCompletion:
@abstract Recovers an active workout session after a client crash. If no session is available to be re-attached,
nil will be returned. If an error occurs, session will be nil and error will be set appropriately.
*/
-- (void)recoverActiveWorkoutSessionWithCompletion:(void (^)(HKWorkoutSession * _Nullable_result session, NSError * _Nullable error))completion API_AVAILABLE(watchos(5.0)) API_UNAVAILABLE(ios, macCatalyst, macos);
+- (void)recoverActiveWorkoutSessionWithCompletion:(void (^NS_SWIFT_SENDABLE)(HKWorkoutSession * _Nullable_result session, NSError * _Nullable error))completion API_AVAILABLE(watchos(5.0)) API_UNAVAILABLE(ios, macCatalyst, macos);
@end
@@ -360,11 +362,11 @@
HKQuantityTypeIdentifierStepCount) have a minimum frequency of HKUpdateFrequencyHourly. This is enforced
transparently to the caller.
*/
-- (void)enableBackgroundDeliveryForType:(HKObjectType *)type frequency:(HKUpdateFrequency)frequency withCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(watchos(8.0), macCatalyst(13.0), macos(13.0));
+- (void)enableBackgroundDeliveryForType:(HKObjectType *)type frequency:(HKUpdateFrequency)frequency withCompletion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(watchos(8.0), macCatalyst(13.0), macos(13.0));
-- (void)disableBackgroundDeliveryForType:(HKObjectType *)type withCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(watchos(8.0), macCatalyst(13.0), macos(13.0));
+- (void)disableBackgroundDeliveryForType:(HKObjectType *)type withCompletion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(watchos(8.0), macCatalyst(13.0), macos(13.0));
-- (void)disableAllBackgroundDeliveryWithCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(watchos(8.0), macCatalyst(13.0), macos(13.0));
+- (void)disableAllBackgroundDeliveryWithCompletion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(watchos(8.0), macCatalyst(13.0), macos(13.0));
@end
@@ -426,7 +428,7 @@
- (void)relateWorkoutEffortSample:(HKSample *)sample
withWorkout:(HKWorkout *)workout
activity:(nullable HKWorkoutActivity *)activity
- completion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0));
+ completion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0));
/*!
@method unrelateWorkoutEffortSample:fromWorkout:activity:completion
@abstract Unrelates a workout effort sample from a workout
@@ -439,7 +441,7 @@
- (void)unrelateWorkoutEffortSample:(HKSample *)sample
fromWorkout:(HKWorkout *)workout
activity:(nullable HKWorkoutActivity *)activity
- completion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0));
+ completion:(void (^NS_SWIFT_SENDABLE)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0));
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesBuilder.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesBuilder.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesBuilder.h 2024-08-03 12:57:09
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesBuilder.h 2024-08-29 23:25:40
@@ -5,6 +5,8 @@
// Copyright © 2018-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSeriesBuilder.h>
NS_ASSUME_NONNULL_BEGIN
@@ -21,7 +23,9 @@
Calling finishSeriesWithcompletion: will stop and complete the series. If the builder is deleted,
or the client goes away before calling the finish method, data will be lost.
*/
-HK_EXTERN API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
@interface HKHeartbeatSeriesBuilder : HKSeriesBuilder
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h 2024-09-04 04:57:56
@@ -5,6 +5,8 @@
// Copyright © 2018-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
NS_ASSUME_NONNULL_BEGIN
@@ -17,6 +19,7 @@
@discussion Once instantiated, call HKHealthStore executeQuery to begin enumerating the heartbeat series data.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKHeartbeatSeriesQueryDescriptor", ios(13.0, API_TO_BE_DEPRECATED), watchos(6.0, API_TO_BE_DEPRECATED));
#else
@@ -37,7 +40,7 @@
or stopQuery called, the query is complete and no more calls to the handler will be made.
*/
- (instancetype)initWithHeartbeatSeries:(HKHeartbeatSeriesSample *)heartbeatSeries
- dataHandler:(void(^)(HKHeartbeatSeriesQuery *query, NSTimeInterval timeSinceSeriesStart, BOOL precededByGap, BOOL done, NSError * _Nullable error))dataHandler NS_DESIGNATED_INITIALIZER;
+ dataHandler:(void(^NS_SWIFT_SENDABLE)(HKHeartbeatSeriesQuery *query, NSTimeInterval timeSinceSeriesStart, BOOL precededByGap, BOOL done, NSError * _Nullable error))dataHandler NS_DESIGNATED_INITIALIZER;
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesSample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesSample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesSample.h 2024-08-15 23:42:53
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesSample.h 2024-09-04 04:57:54
@@ -5,6 +5,8 @@
// Copyright © 2018-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSeriesSample.h>
NS_ASSUME_NONNULL_BEGIN
@@ -14,7 +16,9 @@
@abstract An HKHeartbeatSeriesSample represents a series of heartbeats.
@discussion To retrieve the underlying series data for an HKHeartbeatSeriesSample, use HKHeartbeatSeriesQuery
*/
-HK_EXTERN API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
@interface HKHeartbeatSeriesSample : HKSeriesSample
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h 2024-09-04 04:57:56
@@ -16,7 +16,9 @@
@class HKLensSpecification
@abstract An object subclass representing common lens specification
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKLensSpecification : NSObject
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutBuilder.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutBuilder.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutBuilder.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutBuilder.h 2024-09-06 01:15:02
@@ -16,7 +16,8 @@
@class HKLiveWorkoutBuilder;
@class HKWorkoutSession;
-HK_EXTERN API_AVAILABLE(watchos(5.0)) API_UNAVAILABLE(ios)
+HK_EXTERN
+API_AVAILABLE(watchos(5.0)) API_UNAVAILABLE(ios)
@protocol HKLiveWorkoutBuilderDelegate <NSObject>
/*!
@@ -59,7 +60,9 @@
@end
-HK_EXTERN API_AVAILABLE(watchos(5.0)) API_UNAVAILABLE(ios)
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(watchos(5.0)) API_UNAVAILABLE(ios)
@interface HKLiveWorkoutBuilder : HKWorkoutBuilder
- (instancetype)initWithHealthStore:(HKHealthStore *)healthStore
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutDataSource.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutDataSource.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutDataSource.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutDataSource.h 2024-09-04 04:57:55
@@ -6,6 +6,7 @@
//
#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKWorkoutBuilder.h>
NS_ASSUME_NONNULL_BEGIN
@@ -17,7 +18,9 @@
@class HKLiveWorkoutDataSource
@discussion An HKLiveWorkoutDataSource is to be used with an HKWorkoutBuilder to automatically collect samples
*/
-HK_EXTERN API_AVAILABLE(watchos(5.0)) API_UNAVAILABLE(ios)
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(watchos(5.0)) API_UNAVAILABLE(ios)
@interface HKLiveWorkoutDataSource : NSObject
- (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h 2024-08-15 23:57:02
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h 2024-08-28 18:33:38
@@ -5,6 +5,7 @@
// Copyright (c) 2013-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h 2024-09-04 04:57:56
@@ -14,7 +14,9 @@
@class HKSourceRevision;
@class HKDevice;
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKObject : NSObject <NSSecureCoding>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h 2024-08-15 23:51:13
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h 2024-08-28 18:24:11
@@ -5,6 +5,7 @@
// Copyright (c) 2013-2024 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuantityAggregationStyle.h>
#import <HealthKit/HKTypeIdentifiers.h>
@@ -30,8 +31,9 @@
@class HKObjectType
@abstract An abstract class representing a type of object that can be stored by HealthKit.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKObjectType : NSObject <NSSecureCoding, NSCopying>
/*!
@@ -78,8 +80,9 @@
@class HKCharacteristicType
@abstract Represents a type of object that describes a characteristic of the user (such as date of birth).
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKCharacteristicType : HKObjectType
@end
@@ -87,8 +90,9 @@
@class HKSampleType
@abstract Represents a type of HKSample.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKSampleType : HKObjectType
/*!
@@ -132,8 +136,9 @@
@class HKCategoryType
@abstract Represent a type of HKCategorySample.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKCategoryType : HKSampleType
@end
@@ -141,8 +146,9 @@
@class HKCorrelationType
@abstract Represents a type of HKCorrelation
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKCorrelationType : HKSampleType
@end
@@ -150,8 +156,9 @@
@class HKDocumentType
@abstract Represents a type of HKDocument.
*/
-HK_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(13.0))
@interface HKDocumentType : HKSampleType
@end
@@ -159,8 +166,9 @@
@class HKQuantityType
@abstract Represents types of HKQuantitySamples.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKQuantityType : HKSampleType
@property (readonly) HKQuantityAggregationStyle aggregationStyle;
@@ -178,8 +186,9 @@
@class HKWorkoutType
@abstract Represents a workout or exercise
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKWorkoutType : HKSampleType
@end
@@ -187,8 +196,9 @@
@class HKSeriesType
@abstract Represents a type of HKSeriesSample
*/
-HK_EXTERN API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
@interface HKSeriesType : HKSampleType
+ (instancetype)workoutRouteType;
@@ -200,8 +210,9 @@
@class HKActivitySummaryType
@abstract Represents an HKActivitySummary
*/
-HK_EXTERN API_AVAILABLE(ios(9.3), watchos(2.2), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(9.3), watchos(2.2), macCatalyst(13.0), macos(13.0))
@interface HKActivitySummaryType : HKObjectType
@end
@@ -209,8 +220,9 @@
@class HKAudiogramSampleType
@abstract Represents an audiogram sample.
*/
-HK_EXTERN API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0))
@interface HKAudiogramSampleType : HKSampleType
@end
@@ -218,8 +230,9 @@
@class HKElectrocardiogramType
@abstract Represents an electrocardiogram sample.
*/
-HK_EXTERN API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0))
@interface HKElectrocardiogramType : HKSampleType
@end
@@ -227,8 +240,9 @@
@class HKPrescriptionType
@abstract Represents a prescription type
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKPrescriptionType : HKSampleType
@end
@@ -236,7 +250,9 @@
@class HKScoredAssessmentType
@abstract Represents a scored assessment sample
*/
-HK_EXTERN API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
@interface HKScoredAssessmentType : HKSampleType
@end
@@ -244,7 +260,9 @@
@class HKStateOfMindType
@abstract Represents an experienced feeling and its surrounding context.
*/
-HK_EXTERN API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
@interface HKStateOfMindType : HKSampleType
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
#import <HealthKit/HKQueryDescriptor.h>
@@ -12,7 +14,9 @@
typedef void(^HKObserverQueryCompletionHandler)(void);
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKObserverQuery : HKQuery
/*!
@@ -25,7 +29,7 @@
- (instancetype)initWithSampleType:(HKSampleType *)sampleType
predicate:(nullable NSPredicate *)predicate
- updateHandler:(void(^)(HKObserverQuery *query, HKObserverQueryCompletionHandler completionHandler, NSError * _Nullable error))updateHandler;
+ updateHandler:(void(^NS_SWIFT_SENDABLE)(HKObserverQuery *query, HKObserverQueryCompletionHandler completionHandler, NSError * _Nullable error))updateHandler;
/*!
@method initWithQueryDescriptors:updateHandler:
@@ -38,7 +42,7 @@
which you are interested in getting notified.
*/
- (instancetype)initWithQueryDescriptors:(NSArray<HKQueryDescriptor *> *)queryDescriptors
- updateHandler:(void(^)(HKObserverQuery *query, NSSet<HKSampleType *> * _Nullable sampleTypesAdded, HKObserverQueryCompletionHandler completionHandler, NSError * _Nullable error))updateHandler API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0));
+ updateHandler:(void(^NS_SWIFT_SENDABLE)(HKObserverQuery *query, NSSet<HKSampleType *> * _Nullable sampleTypesAdded, HKObserverQueryCompletionHandler completionHandler, NSError * _Nullable error))updateHandler API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0));
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h 2024-09-04 04:57:54
@@ -6,6 +6,7 @@
//
#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKScoredAssessment.h>
NS_ASSUME_NONNULL_BEGIN
@@ -43,8 +44,8 @@
/// Represents the result of a PHQ-9 assessment. Learn more about Pfizer's PHQ-9 at https://support.apple.com/en-us/105070
HK_EXTERN
-API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
@interface HKPHQ9Assessment: HKScoredAssessment
/// Answers on the PHQ-9 assessment. There are exactly 9 answers, one for each multiple choice question. Each answer is of type `HKPHQ9AssessmentAnswer`. If the 9th question was unanswered, the answer is `HKPHQ9AssessmentAnswerPreferNotToAnswer`.
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h 2024-09-04 04:57:56
@@ -5,6 +5,7 @@
// Copyright (c) 2013-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -15,8 +16,9 @@
@class HKQuantity
@abstract The HKQuantity class provides an encapsulation of a quantity value and the unit of measurement.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKQuantity : NSObject <NSSecureCoding, NSCopying>
- (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h 2024-08-15 23:42:53
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h 2024-09-04 04:57:54
@@ -5,6 +5,8 @@
// Copyright (c) 2013-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
NS_ASSUME_NONNULL_BEGIN
@@ -16,7 +18,9 @@
@class HKQuantitySample
@abstract An abstract HKSample subclass representing a quantity measurement.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKQuantitySample : HKSample
@property (readonly, copy) HKQuantityType *quantityType;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleBuilder.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleBuilder.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleBuilder.h 2024-08-03 12:57:11
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleBuilder.h 2024-09-04 05:13:15
@@ -5,6 +5,7 @@
// Copyright © 2018-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -26,7 +27,9 @@
-finishSeriesWithMetadata:completion:. Calling -discard invalidates the series and
discards any data that was previously associated with it.
*/
-HK_EXTERN API_AVAILABLE(ios(12.0), watchos(5.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(12.0), watchos(5.0), macCatalyst(13.0), macos(13.0))
@interface HKQuantitySeriesSampleBuilder : NSObject
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h 2024-08-03 22:35:31
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h 2024-08-29 23:25:40
@@ -5,6 +5,8 @@
// Copyright © 2018-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
NS_ASSUME_NONNULL_BEGIN
@@ -21,6 +23,7 @@
Call -[HKHealthStore stopQuery:] to discontinue further quantity data reporting.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKQuantitySeriesSampleQueryDescriptor", ios(12.0, API_TO_BE_DEPRECATED), watchos(5.0, API_TO_BE_DEPRECATED));
#else
@@ -77,10 +80,10 @@
*/
- (instancetype)initWithQuantityType:(HKQuantityType *)quantityType
predicate:(nullable NSPredicate *)predicate
- quantityHandler:(void(^)(HKQuantitySeriesSampleQuery *query, HKQuantity * _Nullable quantity, NSDateInterval * _Nullable dateInterval, __kindof HKQuantitySample * _Nullable quantitySample, BOOL done, NSError * _Nullable error))quantityHandler API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0));
+ quantityHandler:(void(^NS_SWIFT_SENDABLE)(HKQuantitySeriesSampleQuery *query, HKQuantity * _Nullable quantity, NSDateInterval * _Nullable dateInterval, __kindof HKQuantitySample * _Nullable quantitySample, BOOL done, NSError * _Nullable error))quantityHandler API_AVAILABLE(ios(13.0), watchos(6.0), macCatalyst(13.0), macos(13.0));
- (instancetype)initWithSample:(HKQuantitySample *)quantitySample
- quantityHandler:(void(^)(HKQuantitySeriesSampleQuery *query, HKQuantity * _Nullable quantity, NSDate * _Nullable date, BOOL done, NSError * _Nullable error))quantityHandler API_DEPRECATED_WITH_REPLACEMENT("initWithQuantityType:predicate:quantityHandler:", ios(12.0, 13.0), watchos(5.0, 6.0));
+ quantityHandler:(void(^NS_SWIFT_SENDABLE)(HKQuantitySeriesSampleQuery *query, HKQuantity * _Nullable quantity, NSDate * _Nullable date, BOOL done, NSError * _Nullable error))quantityHandler API_DEPRECATED_WITH_REPLACEMENT("initWithQuantityType:predicate:quantityHandler:", ios(12.0, 13.0), watchos(5.0, 6.0));
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h 2024-09-06 01:08:27
@@ -19,7 +19,9 @@
@class HKSampleType;
@class HKSource;
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKQuery : NSObject
@property (readonly, strong, nullable) HKObjectType *objectType API_AVAILABLE(ios(9.3), watchos(2.2), macCatalyst(13.0), macos(13.0));
@@ -279,7 +281,7 @@
@param totalEnergyBurned The value that the workout's totalEnergyBurned is being compared to. It is the right hand side of the
expression. The unit for this value should be of type Energy.
*/
-+ (NSPredicate *)predicateForWorkoutsWithOperatorType:(NSPredicateOperatorType)operatorType totalEnergyBurned:(HKQuantity *)totalEnergyBurned API_DEPRECATED("Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierActiveEnergyBurned", ios(8.0, 18.0), watchos(2.0, 11.0), macCatalyst(13.0, 18.0), macos(13.0, 15.0));
++ (NSPredicate *)predicateForWorkoutsWithOperatorType:(NSPredicateOperatorType)operatorType totalEnergyBurned:(HKQuantity *)totalEnergyBurned API_DEPRECATED("Use predicateForWorkoutsWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierActiveEnergyBurned", ios(8.0, 18.0), watchos(2.0, 11.0), macCatalyst(13.0, 18.0), macos(13.0, 15.0));
/*!
@method predicateForWorkoutsWithOperatorType:totalDistance:
@@ -290,7 +292,7 @@
@param totalDistance The value that the workout's totalEnergyBurned is being compared to. It is the right hand side of the
expression. The unit for this value should be of type Distance.
*/
-+ (NSPredicate *)predicateForWorkoutsWithOperatorType:(NSPredicateOperatorType)operatorType totalDistance:(HKQuantity *)totalDistance API_DEPRECATED("Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for the desired distance type", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), macCatalyst(13.0, API_TO_BE_DEPRECATED), macos(13.0, API_TO_BE_DEPRECATED));
++ (NSPredicate *)predicateForWorkoutsWithOperatorType:(NSPredicateOperatorType)operatorType totalDistance:(HKQuantity *)totalDistance API_DEPRECATED("Use predicateForWorkoutsWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for the desired distance type", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), macCatalyst(13.0, API_TO_BE_DEPRECATED), macos(13.0, API_TO_BE_DEPRECATED));
/*!
@method predicateForWorkoutsWithOperatorType:totalSwimmingStrokeCount:
@abstract Creates a predicate for use with HKQuery subclasses.
@@ -301,7 +303,7 @@
It is the right hand side of the expression. The unit for this value should
be of type Count.
*/
-+ (NSPredicate *)predicateForWorkoutsWithOperatorType:(NSPredicateOperatorType)operatorType totalSwimmingStrokeCount:(HKQuantity *)totalSwimmingStrokeCount API_DEPRECATED("Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierSwimmingStrokeCount", ios(10.0, 18.0), watchos(3.0, 11.0), macCatalyst(13.0, 18.0), macos(13.0, 15.0));
++ (NSPredicate *)predicateForWorkoutsWithOperatorType:(NSPredicateOperatorType)operatorType totalSwimmingStrokeCount:(HKQuantity *)totalSwimmingStrokeCount API_DEPRECATED("Use predicateForWorkoutsWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierSwimmingStrokeCount", ios(10.0, 18.0), watchos(3.0, 11.0), macCatalyst(13.0, 18.0), macos(13.0, 15.0));
/*!
@method predicateForWorkoutsWithOperatorType:totalFlightsClimbed:
@@ -313,7 +315,7 @@
It is the right hand side of the expression. The unit for this value should
be of type Count.
*/
-+ (NSPredicate *)predicateForWorkoutsWithOperatorType:(NSPredicateOperatorType)operatorType totalFlightsClimbed:(HKQuantity *)totalFlightsClimbed API_DEPRECATED("Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierFlightsClimbed", ios(11.0, 18.0), watchos(4.0, 11.0), macCatalyst(13.0, 18.0), macos(13.0, 15.0));
++ (NSPredicate *)predicateForWorkoutsWithOperatorType:(NSPredicateOperatorType)operatorType totalFlightsClimbed:(HKQuantity *)totalFlightsClimbed API_DEPRECATED("Use predicateForWorkoutsWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierFlightsClimbed", ios(11.0, 18.0), watchos(4.0, 11.0), macCatalyst(13.0, 18.0), macos(13.0, 15.0));
/*!
@method predicateForWorkoutsWithOperatorType:quantityType:sumQuantity:
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h 2024-09-04 04:57:55
@@ -14,7 +14,9 @@
@class HKQueryAnchor
@discussion This object encapsulates the state of an HKAnchoredObjectQuery
*/
-HK_EXTERN API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0)) NS_SWIFT_SENDABLE
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKQueryAnchor : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h 2024-09-04 04:57:55
@@ -5,12 +5,15 @@
// Copyright © 2021-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
#import <HealthKit/HKObjectType.h>
NS_ASSUME_NONNULL_BEGIN
-HK_EXTERN API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0))
@interface HKQueryDescriptor : NSObject<NSCopying, NSSecureCoding>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKObject.h>
NS_ASSUME_NONNULL_BEGIN
@@ -15,7 +17,9 @@
@class HKSample
@abstract An abstract class representing measurements taken over a period of time.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKSample : HKObject
@property (readonly, copy) HKSampleType *sampleType;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h 2024-08-03 22:35:32
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h 2024-08-29 23:25:40
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
#import <HealthKit/HKQueryDescriptor.h>
@@ -18,6 +20,7 @@
@abstract A concrete subclass of HKQuery that provides an interface to retrieve HKSample objects.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKSampleQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
#else
@@ -51,7 +54,7 @@
predicate:(nullable NSPredicate *)predicate
limit:(NSUInteger)limit
sortDescriptors:(nullable NSArray<NSSortDescriptor *> *)sortDescriptors
- resultsHandler:(void(^)(HKSampleQuery *query, NSArray<__kindof HKSample *> * _Nullable results, NSError * _Nullable error))resultsHandler;
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKSampleQuery *query, NSArray<__kindof HKSample *> * _Nullable results, NSError * _Nullable error))resultsHandler;
/*!
@method initWithQueryDescriptors:limit:resultsHandler:
@@ -67,7 +70,7 @@
*/
- (instancetype)initWithQueryDescriptors:(NSArray<HKQueryDescriptor *> *)queryDescriptors
limit:(NSInteger)limit
- resultsHandler:(void(^)(HKSampleQuery *query, NSArray<__kindof HKSample *> * _Nullable results, NSError * _Nullable error))resultsHandler API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0));
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKSampleQuery *query, NSArray<__kindof HKSample *> * _Nullable results, NSError * _Nullable error))resultsHandler API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0));
/*!
@method initWithQueryDescriptors:limit:sortDescriptors:resultsHandler:
@@ -86,7 +89,7 @@
- (instancetype)initWithQueryDescriptors:(NSArray<HKQueryDescriptor *> *)queryDescriptors
limit:(NSInteger)limit
sortDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors
- resultsHandler:(void(^)(HKSampleQuery *query, NSArray<__kindof HKSample *> * _Nullable results, NSError * _Nullable error))resultsHandler API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0));
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKSampleQuery *query, NSArray<__kindof HKSample *> * _Nullable results, NSError * _Nullable error))resultsHandler API_AVAILABLE(ios(15.0), watchos(8.0), macCatalyst(15.0), macos(13.0));
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h 2024-09-04 04:57:56
@@ -6,18 +6,18 @@
//
#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
NS_ASSUME_NONNULL_BEGIN
-
/*!
@class HKScoredAssessment
@abstract An abstract HKSample subclass representing the results of a scored assessment.
*/
HK_EXTERN
-API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
@interface HKScoredAssessment : HKSample <NSSecureCoding, NSCopying>
/// The score determined by the answers on an assessment
@@ -27,6 +27,5 @@
+ (instancetype)new NS_UNAVAILABLE;
@end
-
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesBuilder.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesBuilder.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesBuilder.h 2024-08-15 23:42:50
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesBuilder.h 2024-09-04 04:57:51
@@ -5,6 +5,7 @@
// Copyright (c) 2015 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -15,6 +16,7 @@
Concrete subclasses generate the actual HKSeriesSample objects.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
@interface HKSeriesBuilder : NSObject
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesSample.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesSample.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesSample.h 2024-08-15 23:42:52
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesSample.h 2024-09-04 04:57:53
@@ -5,16 +5,18 @@
// Copyright (c) 2015 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
NS_ASSUME_NONNULL_BEGIN
-
/*!
@class HKSeriesSample
@abstract This class represents a type of HKSample that references a series of data.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
@interface HKSeriesSample : HKSample
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSource.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSource.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSource.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSource.h 2024-09-04 04:57:54
@@ -5,6 +5,7 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -13,7 +14,9 @@
@class HKSource
@abstract Represents the entity that created an object stored by HealthKit.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKSource : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
NS_ASSUME_NONNULL_BEGIN
@@ -14,6 +16,7 @@
@abstract A query that returns a set of sources that have saved objects matching certain criteria.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKSourceQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
#else
@@ -32,7 +35,7 @@
*/
- (instancetype)initWithSampleType:(HKSampleType *)sampleType
samplePredicate:(nullable NSPredicate *)objectPredicate
- completionHandler:(void(^)(HKSourceQuery *query, NSSet<HKSource *> * _Nullable sources, NSError * _Nullable error))completionHandler;
+ completionHandler:(void(^NS_SWIFT_SENDABLE)(HKSourceQuery *query, NSSet<HKSource *> * _Nullable sources, NSError * _Nullable error))completionHandler;
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h 2024-08-15 23:42:56
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h 2024-09-04 04:57:56
@@ -5,6 +5,7 @@
// Copyright © 2015-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
@class HKSource;
@@ -16,7 +17,9 @@
@abstract Represents a specific revision of an HKSource.
*/
-HK_EXTERN API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKSourceRevision : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStateOfMind.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStateOfMind.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStateOfMind.h 2024-08-03 22:35:32
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStateOfMind.h 2024-08-29 23:25:41
@@ -5,11 +5,12 @@
// Copyright © 2022-2024 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
NS_ASSUME_NONNULL_BEGIN
-
/*!
@enum HKStateOfMindValenceClassification
@abstract A general region of pleasantness derived from valence logged on a state of mind sample.
@@ -109,8 +110,8 @@
/// Represents how one feels, including descriptors of a feeling and optionally, its source.
HK_EXTERN
-API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
@interface HKStateOfMind : HKSample <NSSecureCoding, NSCopying>
/// A description of the kind of feeling type captured by this state of mind.
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h 2024-08-15 23:57:01
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h 2024-08-29 23:25:40
@@ -5,6 +5,7 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -48,7 +49,9 @@
@class HKStatistics
@abstract Represents statistics for quantity samples over a period of time.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKStatistics : NSObject <NSSecureCoding, NSCopying>
@property (readonly, strong) HKQuantityType *quantityType;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2024 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
#import <HealthKit/HKStatistics.h>
@@ -12,7 +14,9 @@
@class HKStatistics;
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKStatisticsCollection : NSObject
- (instancetype)init NS_UNAVAILABLE;
@@ -50,6 +54,7 @@
@end
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKStatisticsCollectionQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
#else
@@ -61,8 +66,8 @@
@property (readonly) HKStatisticsOptions options;
@property (readonly, copy) NSDateComponents *intervalComponents;
-@property (nonatomic, copy, nullable) void(^initialResultsHandler)(HKStatisticsCollectionQuery *query, HKStatisticsCollection * _Nullable result, NSError * _Nullable error);
-@property (nonatomic, copy, nullable) void(^statisticsUpdateHandler)(HKStatisticsCollectionQuery *query, HKStatistics * _Nullable statistics, HKStatisticsCollection * _Nullable collection, NSError * _Nullable error);
+@property (nonatomic, copy, nullable) void(^NS_SWIFT_SENDABLE initialResultsHandler)(HKStatisticsCollectionQuery *query, HKStatisticsCollection * _Nullable result, NSError * _Nullable error);
+@property (nonatomic, copy, nullable) void(^NS_SWIFT_SENDABLE statisticsUpdateHandler)(HKStatisticsCollectionQuery *query, HKStatistics * _Nullable statistics, HKStatisticsCollection * _Nullable collection, NSError * _Nullable error);
- (instancetype)initWithQuantityType:(HKQuantityType *)quantityType
quantitySamplePredicate:(nullable NSPredicate *)quantitySamplePredicate
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h 2024-09-04 04:57:54
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2022 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
#import <HealthKit/HKStatistics.h>
@@ -17,6 +19,7 @@
@abstract Calculates statistics on quantity samples matching the given quantity type and predicate.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKStatisticsQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
#else
@@ -27,7 +30,7 @@
- (instancetype)initWithQuantityType:(HKQuantityType *)quantityType
quantitySamplePredicate:(nullable NSPredicate *)quantitySamplePredicate
options:(HKStatisticsOptions)options
- completionHandler:(void(^)(HKStatisticsQuery *query, HKStatistics * _Nullable result, NSError * _Nullable error))handler;
+ completionHandler:(void(^NS_SWIFT_SENDABLE)(HKStatisticsQuery *query, HKStatistics * _Nullable result, NSError * _Nullable error))handler;
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h 2024-08-03 11:02:02
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h 2024-09-06 01:08:26
@@ -147,7 +147,6 @@
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierBasalBodyTemperature API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // degC, Discrete (Arithmetic)
// Respiratory
-HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0)); // count, Discrete (Arithmetic)
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierForcedExpiratoryVolume1 API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // L, Discrete (Arithmetic)
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierForcedVitalCapacity API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // L, Discrete (Arithmetic)
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierInhalerUsage API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // count, Cumulative
@@ -207,7 +206,6 @@
HK_EXTERN HKCategoryTypeIdentifier const HKCategoryTypeIdentifierSexualActivity API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // HKCategoryValue
// Respiratory
-HK_EXTERN HKCategoryTypeIdentifier const HKCategoryTypeIdentifierSleepApneaEvent API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0)); // HKCategoryValue
// Sleep
HK_EXTERN HKCategoryTypeIdentifier const HKCategoryTypeIdentifierSleepAnalysis API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // HKCategoryValueSleepAnalysis
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h 2024-08-15 23:40:33
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h 2024-09-04 05:13:15
@@ -10,8 +10,9 @@
NS_ASSUME_NONNULL_BEGIN
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKUnit : NSObject <NSSecureCoding, NSCopying>
/// Returns a unique string representation for the unit that could be used with +unitFromString:
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h 2024-08-03 12:57:11
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h 2024-09-04 05:13:15
@@ -5,6 +5,8 @@
// Copyright © 2021-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
@class HKVerifiableClinicalRecordSubject;
@@ -55,7 +57,9 @@
@class HKVerifiableClinicalRecord
@abstract An NSObject that represents a verifiable clinical record.
*/
-HK_EXTERN NS_SWIFT_SENDABLE API_AVAILABLE(ios(15.0), macCatalyst(15.0), macos(13.0)) __WATCHOS_PROHIBITED
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(15.0), macCatalyst(15.0), macos(13.0)) __WATCHOS_PROHIBITED
@interface HKVerifiableClinicalRecord : HKSample
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h 2024-09-04 04:57:54
@@ -5,6 +5,8 @@
// Copyright © 2021-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
#import <HealthKit/HKVerifiableClinicalRecord.h>
@@ -15,6 +17,7 @@
@abstract A one-time share query that returns user-selected verifiable clinical records.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKVerifiableClinicalRecordQueryDescriptor", ios(15.0, API_TO_BE_DEPRECATED));
#else
@@ -48,7 +51,7 @@
*/
- (instancetype)initWithRecordTypes:(NSArray<NSString *> *)recordTypes
predicate:(nullable NSPredicate *)predicate
- resultsHandler:(void(^)(HKVerifiableClinicalRecordQuery *query,
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKVerifiableClinicalRecordQuery *query,
NSArray<HKVerifiableClinicalRecord *> * _Nullable records,
NSError * _Nullable error))resultsHandler;
@@ -64,7 +67,7 @@
- (instancetype)initWithRecordTypes:(NSArray<NSString *> *)recordTypes
sourceTypes:(NSArray<HKVerifiableClinicalRecordSourceType> *)sourceTypes
predicate:(nullable NSPredicate *)predicate
- resultsHandler:(void(^)(HKVerifiableClinicalRecordQuery *query,
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKVerifiableClinicalRecordQuery *query,
NSArray<HKVerifiableClinicalRecord *> * _Nullable records,
NSError * _Nullable error))resultsHandler API_AVAILABLE(ios(15.4), macCatalyst(15.4), macos(13.0));
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordSubject.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordSubject.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordSubject.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordSubject.h 2024-09-04 04:57:55
@@ -5,6 +5,7 @@
// Copyright © 2021-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -13,7 +14,9 @@
@class HKVerifiableClinicalRecordSubject
@abstract An NSObject that represents a verifiable clinical record subject.
*/
-HK_EXTERN NS_SWIFT_SENDABLE API_AVAILABLE(ios(15.0), macCatalyst(15.0), macos(13.0)) __WATCHOS_PROHIBITED
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(15.0), macCatalyst(15.0), macos(13.0)) __WATCHOS_PROHIBITED
@interface HKVerifiableClinicalRecordSubject : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h 2024-09-04 04:57:54
@@ -8,6 +8,7 @@
#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
@class HKDevice;
@@ -27,7 +28,9 @@
@class HKVisionPrescription
@abstract HKSample subclass representing a vision prescription
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKVisionPrescription : HKSample <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h 2024-09-06 01:15:00
@@ -38,7 +38,9 @@
@abstract An object subclass representing prism vision fields used in eye glasses to correct double vision.
The prism aligns the two images so only one is seen.
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKVisionPrism : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h 2024-08-15 23:51:13
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h 2024-08-28 18:33:37
@@ -5,6 +5,8 @@
// Copyright (c) 2014-2024 Apple Inc. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSample.h>
NS_ASSUME_NONNULL_BEGIN
@@ -122,7 +124,9 @@
@class HKWorkoutEvent
@abstract Represents a particular event that occurred during a workout.
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKWorkoutEvent : NSObject <NSSecureCoding, NSCopying>
/*!
@@ -170,7 +174,9 @@
@class HKWorkout
@abstract An HKObject subclass representing a workout or activity
*/
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
@interface HKWorkout : HKSample
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivity.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivity.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivity.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivity.h 2024-08-28 18:33:38
@@ -5,6 +5,7 @@
// Copyright © 2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
NS_ASSUME_NONNULL_BEGIN
@@ -18,7 +19,9 @@
@class HKWorkoutActivity
@abstract An HKWorkoutActivity is an object describing the properties of an activity within an HKWorkout.
*/
-HK_EXTERN API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0))
@interface HKWorkoutActivity : NSObject <NSSecureCoding, NSCopying>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutBuilder.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutBuilder.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutBuilder.h 2024-08-15 23:51:13
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutBuilder.h 2024-09-06 01:15:01
@@ -6,6 +6,7 @@
//
#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKObjectType.h>
#import <HealthKit/HKWorkout.h>
@@ -23,7 +24,9 @@
workout that occurred in the past. Calling finishWorkoutWithCompletion: will create a new workout
with samples, events, and metadata that have been provided.
*/
-HK_EXTERN API_AVAILABLE(ios(12.0), watchos(5.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(12.0), watchos(5.0))
@interface HKWorkoutBuilder : NSObject
- (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutConfiguration.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutConfiguration.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutConfiguration.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutConfiguration.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright © 2018-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKMetadata.h>
#import <HealthKit/HKWorkout.h>
@@ -25,7 +27,8 @@
@class HKWorkoutConfiguration
@abstract An HKWorkoutConfiguration is an object that can be used to describe the workout activity.
*/
-HK_EXTERN API_AVAILABLE(ios(10.0), watchos(3.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+API_AVAILABLE(ios(10.0), watchos(3.0), macCatalyst(13.0), macos(13.0))
@interface HKWorkoutConfiguration : NSObject <NSCopying, NSSecureCoding>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutEffortRelationshipQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutEffortRelationshipQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutEffortRelationshipQuery.h 2024-08-15 23:42:54
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutEffortRelationshipQuery.h 2024-09-04 04:57:54
@@ -5,13 +5,17 @@
// Copyright © 2024 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
#import <HealthKit/HKQueryAnchor.h>
#import <HealthKit/HKQueryDescriptor.h>
NS_ASSUME_NONNULL_BEGIN
-HK_EXTERN API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
@interface HKWorkoutEffortRelationship : NSObject<NSSecureCoding, NSCopying>
/*!
@@ -48,6 +52,8 @@
@class HKWorkoutEffortRelationshipQuery
@abstract A concrete subclass of HKQuery that provides an interface to observe associations with a workout sample.
*/
+HK_EXTERN
+NS_SWIFT_SENDABLE
API_AVAILABLE(ios(18.0), watchos(11.0), macCatalyst(18.0), macos(15.0), visionos(2.0))
@interface HKWorkoutEffortRelationshipQuery : HKQuery
@@ -68,6 +74,7 @@
- (instancetype)initWithPredicate:(nullable NSPredicate *)predicate
anchor:(nullable HKQueryAnchor *)anchor
options:(HKWorkoutEffortRelationshipQueryOptions)options
- resultsHandler:(void(^)(HKWorkoutEffortRelationshipQuery *query, NSArray<HKWorkoutEffortRelationship *> * _Nullable relationships, HKQueryAnchor * _Nullable newAnchor, NSError * _Nullable error))resultsHandler;
+ resultsHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutEffortRelationshipQuery *query, NSArray<HKWorkoutEffortRelationship *> * _Nullable relationships, HKQueryAnchor * _Nullable newAnchor, NSError * _Nullable error))resultsHandler;
@end
+
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRoute.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRoute.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRoute.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRoute.h 2024-09-04 04:57:56
@@ -5,11 +5,15 @@
// Copyright © 2017-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSeriesSample.h>
NS_ASSUME_NONNULL_BEGIN
-HK_EXTERN API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
@interface HKWorkoutRoute : HKSeriesSample
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h 2024-08-15 23:51:13
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h 2024-09-06 01:08:27
@@ -5,6 +5,7 @@
// Copyright © 2017-2024 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import <HealthKit/HKDefines.h>
#import <HealthKit/HKSeriesBuilder.h>
@@ -24,7 +25,9 @@
Calling finishRouteWithWorkout:metadata: will stop and complete the route. If the builder is deleted,
or the client goes away before calling the finish method, data will be lost.
*/
-HK_EXTERN API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
@interface HKWorkoutRouteBuilder : HKSeriesBuilder
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h 2024-08-15 23:42:55
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h 2024-09-04 04:57:55
@@ -5,6 +5,8 @@
// Copyright © 2017-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKQuery.h>
NS_ASSUME_NONNULL_BEGIN
@@ -19,6 +21,7 @@
HKHealthStore stopQuery to discontinue further route data reporting.
*/
HK_EXTERN
+NS_SWIFT_SENDABLE
#if defined(__swift__) && __swift__
API_DEPRECATED("Use HKWorkoutRouteQueryDescriptor", ios(11.0, API_TO_BE_DEPRECATED), watchos(4.0, API_TO_BE_DEPRECATED));
#else
@@ -38,7 +41,7 @@
stopQuery called, the query is complete and no more calls to the handler will be made.
*/
- (instancetype)initWithRoute:(HKWorkoutRoute *)workoutRoute
- dataHandler:(void(^)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler;
+ dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler;
/*!
@method initWithRoute:dateInterval:dataHandler:
@@ -57,7 +60,7 @@
*/
- (instancetype)initWithRoute:(HKWorkoutRoute *)workoutRoute
dateInterval:(NSDateInterval *)dateInterval
- dataHandler:(void(^)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0));
+ dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0));
@end
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h 2024-08-03 12:57:09
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h 2024-08-28 18:24:11
@@ -5,6 +5,8 @@
// Copyright (c) 2015-2022 Apple. All rights reserved.
//
+#import <Foundation/Foundation.h>
+#import <HealthKit/HKDefines.h>
#import <HealthKit/HKLiveWorkoutBuilder.h>
#import <HealthKit/HKMetadata.h>
#import <HealthKit/HKWorkout.h>
@@ -47,7 +49,9 @@
@class HKWorkoutSession
@abstract An HKWorkoutSession is an object describing the properties of a workout activity session.
*/
-HK_EXTERN API_AVAILABLE(ios(17.0), watchos(2.0))
+HK_EXTERN
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(17.0), watchos(2.0))
@interface HKWorkoutSession : NSObject <NSSecureCoding>
/*!
diff -ruN /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.h /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.h
--- /Applications/Xcode_16.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.h 2024-08-15 23:42:52
+++ /Applications/Xcode_16.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.h 2024-09-04 04:57:52
@@ -8,7 +8,6 @@
#import <HealthKit/HKActivitySummary.h>
#import <HealthKit/HKActivitySummaryQuery.h>
#import <HealthKit/HKAnchoredObjectQuery.h>
-#import <HealthKit/HKAppleSleepingBreathingDisturbancesClassification.h>
#import <HealthKit/HKAppleWalkingSteadinessClassification.h>
#import <HealthKit/HKAttachment.h>
#import <HealthKit/HKAttachmentStore.h>
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status