Skip to content

HealthKit watchOS xcode13.3 beta1

Alex Soto edited this page Mar 7, 2022 · 2 revisions

#HealthKit.framework https://github.com/xamarin/xamarin-macios/pull/14325

diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h	2021-11-19 09:46:48.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h	2022-01-25 13:29:04.000000000 -0500
@@ -11,7 +11,12 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-HK_EXTERN API_AVAILABLE(ios(9.3), watchos(2.2))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKActivitySummaryQueryDescriptor", ios(9.3, API_TO_BE_DEPRECATED), watchos(2.2, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(9.3), watchos(2.2))
+#endif
 @interface HKActivitySummaryQuery : HKQuery
 
 /**
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h	2021-11-19 09:44:33.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h	2022-01-25 13:00:08.000000000 -0500
@@ -20,7 +20,12 @@
  @discussion    This query can be used by an application to find out about new or deleted samples in the HealthKit
                 database.
  */
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKAnchoredObjectQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(8.0), watchos(2.0))
+#endif
 @interface HKAnchoredObjectQuery : HKQuery
 
 /*!
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h	2021-11-19 09:46:49.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h	2022-01-25 13:29:06.000000000 -0500
@@ -38,7 +38,12 @@
 @abstract      An HKElectrocardiogramQuery is used to access voltage data associated with an HKElectrocardiogram.
 @discussion    Once instantiated, call HKHealthStore executeQuery to begin enumerating the HKElectrocardiogram voltage data.
 */
-HK_EXTERN API_AVAILABLE(ios(14.0), watchos(7.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKElectrocardiogramQueryDescriptor", ios(14.0, API_TO_BE_DEPRECATED), watchos(7.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(14.0), watchos(7.0))
+#endif
 @interface HKElectrocardiogramQuery : HKQuery
 
 /*!
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h	2021-11-19 09:46:49.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h	2022-01-25 13:29:05.000000000 -0500
@@ -16,7 +16,12 @@
  @abstract      An HKHeartbeatSeriesQuery is used to access data associated with an HKHeartbeatSeriesSample.
  @discussion    Once instantiated, call HKHealthStore executeQuery to begin enumerating the heartbeat series data.
  */
-HK_EXTERN API_AVAILABLE(ios(13.0), watchos(6.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKHeartbeatSeriesQueryDescriptor", ios(13.0, API_TO_BE_DEPRECATED), watchos(6.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(13.0), watchos(6.0))
+#endif
 @interface HKHeartbeatSeriesQuery : HKQuery
 
 /*!
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h	2021-11-19 10:26:06.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h	2022-01-25 13:03:20.000000000 -0500
@@ -21,6 +21,7 @@
 @class HKQuantityType;
 @class HKSeriesType;
 @class HKUnit;
+@class HKPrescriptionType;
 @class HKWorkoutType;
 
 /*!
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h	2021-11-19 10:23:02.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h	2022-01-25 13:00:07.000000000 -0500
@@ -20,7 +20,12 @@
                 the series data.
                 Call -[HKHealthStore stopQuery:] to discontinue further quantity data reporting.
  */
-HK_EXTERN API_AVAILABLE(ios(12.0), watchos(5.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKQuantitySeriesSampleQueryDescriptor", ios(12.0, API_TO_BE_DEPRECATED), watchos(5.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(12.0), watchos(5.0))
+#endif
 @interface HKQuantitySeriesSampleQuery : HKQuery
 
 /*!
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h	2021-11-19 17:06:25.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h	2022-01-25 12:59:27.000000000 -0500
@@ -17,7 +17,12 @@
  @class         HKSampleQuery
  @abstract      A concrete subclass of HKQuery that provides an interface to retrieve HKSample objects.
  */
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKSampleQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(8.0), watchos(2.0))
+#endif
 @interface HKSampleQuery : HKQuery
 
 /*!
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h	2021-11-19 09:46:47.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h	2022-01-25 13:29:02.000000000 -0500
@@ -13,7 +13,12 @@
  @class         HKSourceQuery
  @abstract      A query that returns a set of sources that have saved objects matching certain criteria.
  */
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKSourceQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(8.0), watchos(2.0))
+#endif
 @interface HKSourceQuery : HKQuery
 
 /*!
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h	2021-11-19 09:46:46.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h	2022-01-25 13:29:02.000000000 -0500
@@ -49,7 +49,12 @@
 
 @end
 
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKStatisticsCollectionQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(8.0), watchos(2.0))
+#endif
 @interface HKStatisticsCollectionQuery : HKQuery
 
 @property (readonly, strong) NSDate *anchorDate;
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h	2021-11-19 09:46:46.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h	2022-01-25 13:29:01.000000000 -0500
@@ -16,7 +16,12 @@
  @class     HKStatisticsQuery
  @abstract  Calculates statistics on quantity samples matching the given quantity type and predicate.
  */
-HK_EXTERN API_AVAILABLE(ios(8.0), watchos(2.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKStatisticsQueryDescriptor", ios(8.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(8.0), watchos(2.0))
+#endif
 @interface HKStatisticsQuery : HKQuery
 
 - (instancetype)initWithQuantityType:(HKQuantityType *)quantityType
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h	2021-11-19 09:46:49.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h	2022-01-25 13:29:05.000000000 -0500
@@ -11,6 +11,26 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
+typedef NSString * HKVerifiableClinicalRecordSourceType NS_TYPED_ENUM API_AVAILABLE(ios(15.4));
+
+/*!
+ @constant      HKVerifiableClinicalRecordSourceTypeUnknown
+ @abstract      Represents an unknown source type for a verifiable record.
+ */
+HK_EXTERN HKVerifiableClinicalRecordSourceType const HKVerifiableClinicalRecordSourceTypeUnknown API_AVAILABLE(ios(15.4));
+
+/*!
+ @constant      HKVerifiableClinicalRecordSourceTypeSMARTHealthCard
+ @abstract      Represents a SMART Health Card source type for a verifiable record.
+ */
+HK_EXTERN HKVerifiableClinicalRecordSourceType const HKVerifiableClinicalRecordSourceTypeSMARTHealthCard API_AVAILABLE(ios(15.4));
+
+/*!
+ @constant      HKVerifiableClinicalRecordSourceTypeEUDigitalCOVIDCertificate
+ @abstract      Represents a EU Digital COVID Certificate source type for a verifiable record.
+ */
+HK_EXTERN HKVerifiableClinicalRecordSourceType const HKVerifiableClinicalRecordSourceTypeEUDigitalCOVIDCertificate API_AVAILABLE(ios(15.4));
+
 /*!
  @class         HKVerifiableClinicalRecord
  @abstract      An NSObject that represents a verifiable clinical record.
@@ -67,6 +87,12 @@
  */
 @property (readonly, copy) NSData *JWSRepresentation;
 
+/*!
+ @property      sourceType
+ @abstract      The type of the source leading to this verifiable record.
+ */
+@property (readonly, copy) HKVerifiableClinicalRecordSourceType sourceType API_AVAILABLE(ios(15.4));
+
 - (instancetype)init NS_UNAVAILABLE;
 + (instancetype)new NS_UNAVAILABLE;
 
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h	2021-11-19 09:46:45.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h	2022-01-25 13:29:01.000000000 -0500
@@ -14,7 +14,13 @@
  @class         HKVerifiableClinicalRecordQuery
  @abstract      A one-time share query that returns user-selected verifiable clinical records.
  */
-HK_EXTERN API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos)
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKVerifiableClinicalRecordQueryDescriptor", ios(15.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(15.0))
+#endif
+API_UNAVAILABLE(watchos)
 @interface HKVerifiableClinicalRecordQuery : HKQuery
 
 /*!
@@ -23,6 +29,12 @@
  */
 @property (readonly, copy) NSArray<NSString *> *recordTypes;
 
+/*!
+ @property      sourceTypes
+ @abstract      The source type(s) of the records.
+ */
+@property (readonly, copy) NSArray<HKVerifiableClinicalRecordSourceType> *sourceTypes API_AVAILABLE(ios(15.4));
+
 - (instancetype)init NS_UNAVAILABLE;
 + (instancetype)new NS_UNAVAILABLE;
 
@@ -40,6 +52,22 @@
                                              NSArray<HKVerifiableClinicalRecord *> * _Nullable records,
                                              NSError * _Nullable error))resultsHandler;
 
+/*!
+ @method        initWithRecordTypes:sourceTypes:predicate:resultsHandler:
+ @abstract      Returns a one-time query that will ask for access to and return verifiable clinical records that match the query.
+ 
+ @param         recordTypes     The record types that need to be present on a verifiable clinical record.
+ @param         sourceTypes     The source type(s) of the records.
+ @param         predicate       The predicate which records should match.
+ @param         resultsHandler  The block to invoke with the verifiable clinical records from the query.
+ */
+- (instancetype)initWithRecordTypes:(NSArray<NSString *> *)recordTypes
+                        sourceTypes:(NSArray<HKVerifiableClinicalRecordSourceType> *)sourceTypes
+                          predicate:(nullable NSPredicate *)predicate
+                     resultsHandler:(void(^)(HKVerifiableClinicalRecordQuery *query,
+                                             NSArray<HKVerifiableClinicalRecord *> * _Nullable records,
+                                             NSError * _Nullable error))resultsHandler API_AVAILABLE(ios(15.4));
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h	2021-11-19 09:46:47.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h	2022-01-25 13:29:02.000000000 -0500
@@ -18,7 +18,12 @@
  @discussion    Once instantiated, call HKHealthStore executeQuery to begin enumerating the route data. Call
                 HKHealthStore stopQuery to discontinue further route data reporting.
  */
-HK_EXTERN API_AVAILABLE(ios(11.0), watchos(4.0))
+HK_EXTERN
+#if defined(__swift__) && __swift__
+API_DEPRECATED("Use HKWorkoutRouteQueryDescriptor", ios(11.0, API_TO_BE_DEPRECATED), watchos(4.0, API_TO_BE_DEPRECATED));
+#else
+API_AVAILABLE(ios(11.0), watchos(4.0))
+#endif
 @interface HKWorkoutRouteQuery : HKQuery
 
 /*!
Clone this wiki locally