Repository navigation
HealthKit iOS xcode27.3 b1
Alex Soto edited this page Nov 4, 2026
·
1 revision
#HealthKit.framework
diff -ruN /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicValues.h /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicValues.h
--- /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicValues.h 2026-10-08 09:48:13
+++ /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicValues.h 2026-11-04 09:32:25
@@ -2,7 +2,7 @@
// HKCharacteristicValues.h
// HealthKit
//
-// Copyright © 2022-2025 Apple, Inc. All rights reserved.
+// Copyright © 2022-2026 Apple, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@@ -70,6 +70,23 @@
HKFitzpatrickSkinTypeV = 5,
HKFitzpatrickSkinTypeVI = 6,
} API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0));
+
+/**
+ @enum HKReferenceSex
+ @abstract The sex whose reference ranges should be used when classifying a clinical measurement for the user.
+ @discussion Distinct from HKBiologicalSex, which represents the user's biological sex as shown in their Health
+ profile. Use HKReferenceSex when choosing which reference range applies, and HKBiologicalSex when
+ displaying or reasoning about the profile value itself. The two are independent and may differ.
+
+ @constant HKReferenceSexNotSet The user has not provided a reference sex.
+ @constant HKReferenceSexFemale Reference ranges for female subjects apply.
+ @constant HKReferenceSexMale Reference ranges for male subjects apply.
+ */
+typedef NS_ENUM(NSInteger, HKReferenceSex) {
+ HKReferenceSexNotSet = 0,
+ HKReferenceSexFemale = 1,
+ HKReferenceSexMale = 2,
+} API_AVAILABLE(ios(27.3), watchos(27.3), macCatalyst(27.3), macos(27.3), visionos(27.3));
/**
@enum HKWheelchairUse
diff -ruN /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h
--- /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h 2026-10-06 06:12:56
+++ /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h 2026-11-04 09:32:25
@@ -293,6 +293,19 @@
*/
- (nullable HKActivityMoveModeObject *)activityMoveModeWithError:(NSError **)error API_AVAILABLE(ios(14.0), watchos(7.0), macCatalyst(14.0), macos(13.0));
+/*!
+ @method getReferenceSex:error:
+ @abstract Reads the sex whose reference ranges should be used when classifying a clinical
+ measurement for the user.
+ @discussion Before calling this method, the application should request authorization to access objects with the
+ HKCharacteristicType identified by HKCharacteristicTypeIdentifierReferenceSex.
+
+ Returns YES and sets referenceSex when the read succeeds; HKReferenceSexNotSet then means the
+ user has not provided a value. Returns NO and populates error when read authorization was not
+ granted or the read itself failed, and leaves referenceSex unchanged.
+ */
+- (BOOL)getReferenceSex:(HKReferenceSex *)referenceSex error:(NSError **)error NS_REFINED_FOR_SWIFT API_AVAILABLE(ios(27.3), watchos(27.3), macCatalyst(27.3), macos(27.3), visionos(27.3));
+
@end
@interface HKHealthStore (HKWorkout)
diff -ruN /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h
--- /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h 2026-10-08 08:15:07
+++ /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h 2026-11-04 09:32:25
@@ -26,6 +26,7 @@
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierBodyMassIndex API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // count, Discrete (Arithmetic)
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierElectrodermalActivity API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // S, Discrete (Arithmetic)
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierHeight API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // m, Discrete (Arithmetic)
+HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierHipCircumference API_AVAILABLE(ios(27.3), watchos(27.3), macCatalyst(27.3), macos(27.3), visionos(27.3)); // m, Discrete (Arithmetic)
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierLeanBodyMass API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // kg, Discrete (Arithmetic)
HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierWaistCircumference API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // m, Discrete (Arithmetic)
@@ -270,6 +271,9 @@
HK_EXTERN HKCharacteristicTypeIdentifier const HKCharacteristicTypeIdentifierDateOfBirth API_AVAILABLE(ios(8.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // NSDateComponents
HK_EXTERN HKCharacteristicTypeIdentifier const HKCharacteristicTypeIdentifierFitzpatrickSkinType API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // HKFitzpatrickSkinTypeObject
HK_EXTERN HKCharacteristicTypeIdentifier const HKCharacteristicTypeIdentifierWheelchairUse API_AVAILABLE(ios(10.0), watchos(3.0), macCatalyst(13.0), macos(13.0), visionos(1.0)); // HKWheelchairUseObject
+
+// Other
+HK_EXTERN HKCharacteristicTypeIdentifier const HKCharacteristicTypeIdentifierReferenceSex API_AVAILABLE(ios(27.3), watchos(27.3), macCatalyst(27.3), macos(27.3), visionos(27.3)); // HKReferenceSex
/*-----------------------------------*/
/* HKCorrelationType Identifiers */