Documentation Archive Developer
Search

HealthKit Changes for Swift

HealthKit

Added HKError.init(_nsError: NSError)
DeclarationProtocols
From
class HKActivitySummary : NSObject, NSSecureCoding, NSCopying {
    func dateComponentsForCalendar(_ calendar: NSCalendar) -> NSDateComponents
    var activeEnergyBurned: HKQuantity
    var appleExerciseTime: HKQuantity
    var appleStandHours: HKQuantity
    var activeEnergyBurnedGoal: HKQuantity
    var appleExerciseTimeGoal: HKQuantity
    var appleStandHoursGoal: HKQuantity
}
NSCopying, NSSecureCoding
To
class HKActivitySummary : NSObject, NSSecureCoding, NSCopying {
    func dateComponents(for calendar: Calendar) -> DateComponents
    var activeEnergyBurned: HKQuantity
    var appleExerciseTime: HKQuantity
    var appleStandHours: HKQuantity
    var activeEnergyBurnedGoal: HKQuantity
    var appleExerciseTimeGoal: HKQuantity
    var appleStandHoursGoal: HKQuantity
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKActivitySummary : CVarArg {
}
extension HKActivitySummary : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
func dateComponentsForCalendar(_ calendar: NSCalendar) -> NSDateComponents
To
func dateComponents(for calendar: Calendar) -> DateComponents

DeclarationProtocols
From
class HKActivitySummaryQuery : HKQuery {
    var updateHandler: ((HKActivitySummaryQuery, [HKActivitySummary]?, NSError?) -> Void)?
    init(predicate predicate: NSPredicate?, resultsHandler handler: (HKActivitySummaryQuery, [HKActivitySummary]?, NSError?) -> Void)
}
--
To
class HKActivitySummaryQuery : HKQuery {
    var updateHandler: ((HKActivitySummaryQuery, [HKActivitySummary]?, Error?) -> Swift.Void)?
    init(predicate predicate: NSPredicate?, resultsHandler handler: @escaping (HKActivitySummaryQuery, [HKActivitySummary]?, Error?) -> Swift.Void)
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKActivitySummaryQuery : CVarArg {
}
extension HKActivitySummaryQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
init(predicate predicate: NSPredicate?, resultsHandler handler: (HKActivitySummaryQuery, [HKActivitySummary]?, NSError?) -> Void)
To
init(predicate predicate: NSPredicate?, resultsHandler handler: @escaping (HKActivitySummaryQuery, [HKActivitySummary]?, Error?) -> Swift.Void)

Declaration
From
var updateHandler: ((HKActivitySummaryQuery, [HKActivitySummary]?, NSError?) -> Void)?
To
var updateHandler: ((HKActivitySummaryQuery, [HKActivitySummary]?, Error?) -> Swift.Void)?

DeclarationProtocols
From
class HKAnchoredObjectQuery : HKQuery {
    var updateHandler: ((HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, NSError?) -> Void)?
    init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: (HKAnchoredObjectQuery, [HKSample]?, Int, NSError?) -> Void)
    init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: HKQueryAnchor?, limit limit: Int, resultsHandler handler: (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, NSError?) -> Void)
}
--
To
class HKAnchoredObjectQuery : HKQuery {
    var updateHandler: ((HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Swift.Void)?
    init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: HKQueryAnchor?, limit limit: Int, resultsHandler handler: @escaping (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Swift.Void)
    init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: @escaping (HKAnchoredObjectQuery, [HKSample]?, Int, Error?) -> Swift.Void)
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKAnchoredObjectQuery : CVarArg {
}
extension HKAnchoredObjectQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: (HKAnchoredObjectQuery, [HKSample]?, Int, NSError?) -> Void)
To
init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: @escaping (HKAnchoredObjectQuery, [HKSample]?, Int, Error?) -> Swift.Void)

Declaration
From
init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: HKQueryAnchor?, limit limit: Int, resultsHandler handler: (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, NSError?) -> Void)
To
init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: HKQueryAnchor?, limit limit: Int, resultsHandler handler: @escaping (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Swift.Void)

Declaration
From
var updateHandler: ((HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, NSError?) -> Void)?
To
var updateHandler: ((HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Swift.Void)?

Declaration
From
enum HKAuthorizationStatus : Int {
    case NotDetermined
    case SharingDenied
    case SharingAuthorized
}
To
enum HKAuthorizationStatus : Int {
    case notDetermined
    case sharingDenied
    case sharingAuthorized
}

Declaration
From
case NotDetermined
To
case notDetermined

Declaration
From
case SharingAuthorized
To
case sharingAuthorized

Declaration
From
case SharingDenied
To
case sharingDenied

Declaration
From
enum HKBiologicalSex : Int {
    case NotSet
    case Female
    case Male
    case Other
}
To
enum HKBiologicalSex : Int {
    case notSet
    case female
    case male
    case other
}

Declaration
From
case Female
To
case female

Declaration
From
case Male
To
case male

Declaration
From
case NotSet
To
case notSet

Declaration
From
case Other
To
case other

DeclarationProtocols
From
class HKBiologicalSexObject : NSObject, NSCopying, NSSecureCoding {
    var biologicalSex: HKBiologicalSex { get }
}
NSCopying, NSSecureCoding
To
class HKBiologicalSexObject : NSObject, NSCopying, NSSecureCoding {
    var biologicalSex: HKBiologicalSex { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKBiologicalSexObject : CVarArg {
}
extension HKBiologicalSexObject : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
enum HKBloodType : Int {
    case NotSet
    case APositive
    case ANegative
    case BPositive
    case BNegative
    case ABPositive
    case ABNegative
    case OPositive
    case ONegative
}
To
enum HKBloodType : Int {
    case notSet
    case aPositive
    case aNegative
    case bPositive
    case bNegative
    case abPositive
    case abNegative
    case oPositive
    case oNegative
}

Declaration
From
case ABNegative
To
case abNegative

Declaration
From
case ABPositive
To
case abPositive

Declaration
From
case ANegative
To
case aNegative

Declaration
From
case APositive
To
case aPositive

Declaration
From
case BNegative
To
case bNegative

Declaration
From
case BPositive
To
case bPositive

Declaration
From
case NotSet
To
case notSet

Declaration
From
case ONegative
To
case oNegative

Declaration
From
case OPositive
To
case oPositive

DeclarationProtocols
From
class HKBloodTypeObject : NSObject, NSCopying, NSSecureCoding {
    var bloodType: HKBloodType { get }
}
NSCopying, NSSecureCoding
To
class HKBloodTypeObject : NSObject, NSCopying, NSSecureCoding {
    var bloodType: HKBloodType { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKBloodTypeObject : CVarArg {
}
extension HKBloodTypeObject : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
enum HKBodyTemperatureSensorLocation : Int {
    case Other
    case Armpit
    case Body
    case Ear
    case Finger
    case GastroIntestinal
    case Mouth
    case Rectum
    case Toe
    case EarDrum
    case TemporalArtery
    case Forehead
}
To
enum HKBodyTemperatureSensorLocation : Int {
    case other
    case armpit
    case body
    case ear
    case finger
    case gastroIntestinal
    case mouth
    case rectum
    case toe
    case earDrum
    case temporalArtery
    case forehead
}

Declaration
From
case Armpit
To
case armpit

Declaration
From
case Body
To
case body

Declaration
From
case Ear
To
case ear

Declaration
From
case EarDrum
To
case earDrum

Declaration
From
case Finger
To
case finger

Declaration
From
case Forehead
To
case forehead

Declaration
From
case GastroIntestinal
To
case gastroIntestinal

Declaration
From
case Mouth
To
case mouth

Declaration
From
case Other
To
case other

Declaration
From
case Rectum
To
case rectum

Declaration
From
case TemporalArtery
To
case temporalArtery

Declaration
From
case Toe
To
case toe

Declaration
From
class HKCategorySample : HKSample {
    var categoryType: HKCategoryType { get }
    var value: Int { get }
    init()
    convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?)
    class func categorySampleWithType(_ type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?) -> Self
    convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate)
    class func categorySampleWithType(_ type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate) -> Self
    convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
    class func categorySampleWithType(_ type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
}
To
class HKCategorySample : HKSample {
    var categoryType: HKCategoryType { get }
    var value: Int { get }
    init()
    convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?)
    class func withType(_ type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?) -> Self
    convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date)
    class func withType(_ type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date) -> Self
    convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?)
    class func withType(_ type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
}

Declaration
From
convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate)
To
convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date)

Declaration
From
convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
To
convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?)

Declaration
From
convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?)
To
convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?)

NameDeclaration
FromHKCategoryTypeIdentifierAppleStandHour
let HKCategoryTypeIdentifierAppleStandHour: String
ToappleStandHour
static let appleStandHour: HKCategoryTypeIdentifier

NameDeclaration
FromHKCategoryTypeIdentifierCervicalMucusQuality
let HKCategoryTypeIdentifierCervicalMucusQuality: String
TocervicalMucusQuality
static let cervicalMucusQuality: HKCategoryTypeIdentifier

NameDeclaration
FromHKCategoryTypeIdentifierIntermenstrualBleeding
let HKCategoryTypeIdentifierIntermenstrualBleeding: String
TointermenstrualBleeding
static let intermenstrualBleeding: HKCategoryTypeIdentifier

NameDeclaration
FromHKCategoryTypeIdentifierMenstrualFlow
let HKCategoryTypeIdentifierMenstrualFlow: String
TomenstrualFlow
static let menstrualFlow: HKCategoryTypeIdentifier

NameDeclaration
FromHKCategoryTypeIdentifierOvulationTestResult
let HKCategoryTypeIdentifierOvulationTestResult: String
ToovulationTestResult
static let ovulationTestResult: HKCategoryTypeIdentifier

NameDeclaration
FromHKCategoryTypeIdentifierSexualActivity
let HKCategoryTypeIdentifierSexualActivity: String
TosexualActivity
static let sexualActivity: HKCategoryTypeIdentifier

NameDeclaration
FromHKCategoryTypeIdentifierSleepAnalysis
let HKCategoryTypeIdentifierSleepAnalysis: String
TosleepAnalysis
static let sleepAnalysis: HKCategoryTypeIdentifier

Declaration
From
enum HKCategoryValue : Int {
    case NotApplicable
}
To
enum HKCategoryValue : Int {
    case notApplicable
}

Declaration
From
case NotApplicable
To
case notApplicable

Declaration
From
enum HKCategoryValueAppleStandHour : Int {
    case Stood
    case Idle
}
To
enum HKCategoryValueAppleStandHour : Int {
    case stood
    case idle
}

Declaration
From
case Idle
To
case idle

Declaration
From
case Stood
To
case stood

Declaration
From
enum HKCategoryValueCervicalMucusQuality : Int {
    case Dry
    case Sticky
    case Creamy
    case Watery
    case EggWhite
}
To
enum HKCategoryValueCervicalMucusQuality : Int {
    case dry
    case sticky
    case creamy
    case watery
    case eggWhite
}

Declaration
From
case Creamy
To
case creamy

Declaration
From
case Dry
To
case dry

Declaration
From
case EggWhite
To
case eggWhite

Declaration
From
case Sticky
To
case sticky

Declaration
From
case Watery
To
case watery

Declaration
From
enum HKCategoryValueMenstrualFlow : Int {
    case Unspecified
    case Light
    case Medium
    case Heavy
}
To
enum HKCategoryValueMenstrualFlow : Int {
    case unspecified
    case light
    case medium
    case heavy
}

Declaration
From
case Heavy
To
case heavy

Declaration
From
case Light
To
case light

Declaration
From
case Medium
To
case medium

Declaration
From
case Unspecified
To
case unspecified

Declaration
From
enum HKCategoryValueOvulationTestResult : Int {
    case Negative
    case Positive
    case Indeterminate
}
To
enum HKCategoryValueOvulationTestResult : Int {
    case negative
    case positive
    case indeterminate
}

Declaration
From
case Indeterminate
To
case indeterminate

Declaration
From
case Negative
To
case negative

Declaration
From
case Positive
To
case positive

Declaration
From
enum HKCategoryValueSleepAnalysis : Int {
    case InBed
    case Asleep
}
To
enum HKCategoryValueSleepAnalysis : Int {
    case inBed
    case asleep
    case awake
}

Declaration
From
case Asleep
To
case asleep

Declaration
From
case InBed
To
case inBed

NameDeclaration
FromHKCharacteristicTypeIdentifierBiologicalSex
let HKCharacteristicTypeIdentifierBiologicalSex: String
TobiologicalSex
static let biologicalSex: HKCharacteristicTypeIdentifier

NameDeclaration
FromHKCharacteristicTypeIdentifierBloodType
let HKCharacteristicTypeIdentifierBloodType: String
TobloodType
static let bloodType: HKCharacteristicTypeIdentifier

NameDeclaration
FromHKCharacteristicTypeIdentifierDateOfBirth
let HKCharacteristicTypeIdentifierDateOfBirth: String
TodateOfBirth
static let dateOfBirth: HKCharacteristicTypeIdentifier

NameDeclaration
FromHKCharacteristicTypeIdentifierFitzpatrickSkinType
let HKCharacteristicTypeIdentifierFitzpatrickSkinType: String
TofitzpatrickSkinType
static let fitzpatrickSkinType: HKCharacteristicTypeIdentifier

Modified HKCorrelation
Declaration
From
class HKCorrelation : HKSample {
    var correlationType: HKCorrelationType { get }
    var objects: Set<HKSample> { get }
    convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>)
    class func correlationWithType(_ correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>) -> Self
    convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, metadata metadata: [String : AnyObject]?)
    class func correlationWithType(_ correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, metadata metadata: [String : AnyObject]?) -> Self
    convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
    class func correlationWithType(_ correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
    func objectsForType(_ objectType: HKObjectType) -> Set<HKSample>
}
To
class HKCorrelation : HKSample {
    var correlationType: HKCorrelationType { get }
    var objects: Set<HKSample> { get }
    convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>)
    class func withType(_ correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>) -> Self
    convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, metadata metadata: [String : Any]?)
    class func withType(_ correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, metadata metadata: [String : Any]?) -> Self
    convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : Any]?)
    class func withType(_ correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
    func objects(for objectType: HKObjectType) -> Set<HKSample>
}

Declaration
From
convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>)
To
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>)

Declaration
From
convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
To
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : Any]?)

Declaration
From
convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, metadata metadata: [String : AnyObject]?)
To
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, metadata metadata: [String : Any]?)

Declaration
From
func objectsForType(_ objectType: HKObjectType) -> Set<HKSample>
To
func objects(for objectType: HKObjectType) -> Set<HKSample>

DeclarationProtocols
From
class HKCorrelationQuery : HKQuery {
    @NSCopying var correlationType: HKCorrelationType { get }
    var samplePredicates: [HKSampleType : NSPredicate]? { get }
    init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: (HKCorrelationQuery, [HKCorrelation]?, NSError?) -> Void)
}
--
To
class HKCorrelationQuery : HKQuery {
    @NSCopying var correlationType: HKCorrelationType { get }
    var samplePredicates: [HKSampleType : NSPredicate]? { get }
    init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: @escaping (HKCorrelationQuery, [HKCorrelation]?, Error?) -> Swift.Void)
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKCorrelationQuery : CVarArg {
}
extension HKCorrelationQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: (HKCorrelationQuery, [HKCorrelation]?, NSError?) -> Void)
To
init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: @escaping (HKCorrelationQuery, [HKCorrelation]?, Error?) -> Swift.Void)

NameDeclaration
FromHKCorrelationTypeIdentifierBloodPressure
let HKCorrelationTypeIdentifierBloodPressure: String
TobloodPressure
static let bloodPressure: HKCorrelationTypeIdentifier

NameDeclaration
FromHKCorrelationTypeIdentifierFood
let HKCorrelationTypeIdentifierFood: String
Tofood
static let food: HKCorrelationTypeIdentifier

DeclarationProtocols
From
class HKDeletedObject : NSObject, NSSecureCoding {
    var UUID: NSUUID { get }
    init()
}
NSSecureCoding
To
class HKDeletedObject : NSObject, NSSecureCoding {
    var uuid: UUID { get }
    init()
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKDeletedObject : CVarArg {
}
extension HKDeletedObject : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSSecureCoding

Declaration
From
var UUID: NSUUID { get }
To
var uuid: UUID { get }

Modified HKDevice
DeclarationProtocols
From
class HKDevice : NSObject, NSSecureCoding, NSCopying {
    var name: String { get }
    var manufacturer: String? { get }
    var model: String? { get }
    var hardwareVersion: String? { get }
    var firmwareVersion: String? { get }
    var softwareVersion: String? { get }
    var localIdentifier: String? { get }
    var UDIDeviceIdentifier: String? { get }
    init(name name: String?, manufacturer manufacturer: String?, model model: String?, hardwareVersion hardwareVersion: String?, firmwareVersion firmwareVersion: String?, softwareVersion softwareVersion: String?, localIdentifier localIdentifier: String?, UDIDeviceIdentifier UDIDeviceIdentifier: String?)
    init()
    class func localDevice() -> HKDevice
}
NSCopying, NSSecureCoding
To
class HKDevice : NSObject, NSSecureCoding, NSCopying {
    var name: String? { get }
    var manufacturer: String? { get }
    var model: String? { get }
    var hardwareVersion: String? { get }
    var firmwareVersion: String? { get }
    var softwareVersion: String? { get }
    var localIdentifier: String? { get }
    var udiDeviceIdentifier: String? { get }
    init(name name: String?, manufacturer manufacturer: String?, model model: String?, hardwareVersion hardwareVersion: String?, firmwareVersion firmwareVersion: String?, softwareVersion softwareVersion: String?, localIdentifier localIdentifier: String?, udiDeviceIdentifier UDIDeviceIdentifier: String?)
    init()
    class func local() -> HKDevice
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKDevice : CVarArg {
}
extension HKDevice : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
init(name name: String?, manufacturer manufacturer: String?, model model: String?, hardwareVersion hardwareVersion: String?, firmwareVersion firmwareVersion: String?, softwareVersion softwareVersion: String?, localIdentifier localIdentifier: String?, UDIDeviceIdentifier UDIDeviceIdentifier: String?)
To
init(name name: String?, manufacturer manufacturer: String?, model model: String?, hardwareVersion hardwareVersion: String?, firmwareVersion firmwareVersion: String?, softwareVersion softwareVersion: String?, localIdentifier localIdentifier: String?, udiDeviceIdentifier UDIDeviceIdentifier: String?)

Declaration
From
class func localDevice() -> HKDevice
To
class func local() -> HKDevice

Modified HKDevice.name
Declaration
From
var name: String { get }
To
var name: String? { get }

Declaration
From
var UDIDeviceIdentifier: String? { get }
To
var udiDeviceIdentifier: String? { get }

Declaration
From
enum HKErrorCode : Int {
    case NoError
    case ErrorHealthDataUnavailable
    case ErrorHealthDataRestricted
    case ErrorInvalidArgument
    case ErrorAuthorizationDenied
    case ErrorAuthorizationNotDetermined
    case ErrorDatabaseInaccessible
    case ErrorUserCanceled
    case ErrorAnotherWorkoutSessionStarted
    case ErrorUserExitedWorkoutSession
}
To
enum Code : Int {
        typealias _ErrorType = HKError
        case noError
        case errorHealthDataUnavailable
        case errorHealthDataRestricted
        case errorInvalidArgument
        case errorAuthorizationDenied
        case errorAuthorizationNotDetermined
        case errorDatabaseInaccessible
        case errorUserCanceled
        case errorAnotherWorkoutSessionStarted
        case errorUserExitedWorkoutSession
    }

Declaration
From
case ErrorAnotherWorkoutSessionStarted
To
case errorAnotherWorkoutSessionStarted

Declaration
From
case ErrorAuthorizationDenied
To
case errorAuthorizationDenied

Declaration
From
case ErrorAuthorizationNotDetermined
To
case errorAuthorizationNotDetermined

Declaration
From
case ErrorDatabaseInaccessible
To
case errorDatabaseInaccessible

Declaration
From
case ErrorHealthDataRestricted
To
case errorHealthDataRestricted

Declaration
From
case ErrorHealthDataUnavailable
To
case errorHealthDataUnavailable

Declaration
From
case ErrorInvalidArgument
To
case errorInvalidArgument

DeclarationIntroduction
From
case ErrorUserCanceled
iOS 8.0
To
case errorUserCanceled
iOS 10.0

Declaration
From
case ErrorUserExitedWorkoutSession
To
case errorUserExitedWorkoutSession

Declaration
From
case NoError
To
case noError

Declaration
From
enum HKFitzpatrickSkinType : Int {
    case NotSet
    case I
    case II
    case III
    case IV
    case V
    case VI
}
To
enum HKFitzpatrickSkinType : Int {
    case notSet
    case I
    case II
    case III
    case IV
    case V
    case VI
}

Declaration
From
case NotSet
To
case notSet

DeclarationProtocols
From
class HKFitzpatrickSkinTypeObject : NSObject, NSCopying, NSSecureCoding {
    var skinType: HKFitzpatrickSkinType { get }
}
NSCopying, NSSecureCoding
To
class HKFitzpatrickSkinTypeObject : NSObject, NSCopying, NSSecureCoding {
    var skinType: HKFitzpatrickSkinType { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKFitzpatrickSkinTypeObject : CVarArg {
}
extension HKFitzpatrickSkinTypeObject : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Modified HKHealthStore
DeclarationProtocols
From
class HKHealthStore : NSObject {
    class func isHealthDataAvailable() -> Bool
    func authorizationStatusForType(_ type: HKObjectType) -> HKAuthorizationStatus
    func requestAuthorizationToShareTypes(_ typesToShare: Set<HKSampleType>?, readTypes typesToRead: Set<HKObjectType>?, completion completion: (Bool, NSError?) -> Void)
    func handleAuthorizationForExtensionWithCompletion(_ completion: (Bool, NSError?) -> Void)
    func earliestPermittedSampleDate() -> NSDate
    func saveObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void)
    func saveObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void)
    func deleteObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void)
    func deleteObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void)
    func deleteObjectsOfType(_ objectType: HKObjectType, predicate predicate: NSPredicate, withCompletion completion: (Bool, Int, NSError?) -> Void)
    func executeQuery(_ query: HKQuery)
    func stopQuery(_ query: HKQuery)
    func splitTotalEnergy(_ totalEnergy: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, resultsHandler resultsHandler: (HKQuantity?, HKQuantity?, NSError?) -> Void)
    func dateOfBirth() throws -> NSDate
    func biologicalSex() throws -> HKBiologicalSexObject
    func bloodType() throws -> HKBloodTypeObject
    func fitzpatrickSkinType() throws -> HKFitzpatrickSkinTypeObject
}
extension HKHealthStore {
    func addSamples(_ samples: [HKSample], toWorkout workout: HKWorkout, completion completion: (Bool, NSError?) -> Void)
    func startWorkoutSession(_ workoutSession: HKWorkoutSession)
    func endWorkoutSession(_ workoutSession: HKWorkoutSession)
}
extension HKHealthStore {
    func enableBackgroundDeliveryForType(_ type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: (Bool, NSError?) -> Void)
    func disableBackgroundDeliveryForType(_ type: HKObjectType, withCompletion completion: (Bool, NSError?) -> Void)
    func disableAllBackgroundDeliveryWithCompletion(_ completion: (Bool, NSError?) -> Void)
}
extension HKHealthStore {
    func preferredUnitsForQuantityTypes(_ quantityTypes: Set<HKQuantityType>, completion completion: ([HKQuantityType : HKUnit], NSError?) -> Void)
}
--
To
class HKHealthStore : NSObject {
    class func isHealthDataAvailable() -> Bool
    func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion completion: @escaping (Bool, Error?) -> Swift.Void)
    func handleAuthorizationForExtension(completion completion: @escaping (Bool, Error?) -> Swift.Void)
    func earliestPermittedSampleDate() -> Date
    func save(_ object: HKObject, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    func save(_ objects: [HKObject], withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    func delete(_ object: HKObject, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    func delete(_ objects: [HKObject], withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    func deleteObjects(of objectType: HKObjectType, predicate predicate: NSPredicate, withCompletion completion: @escaping (Bool, Int, Error?) -> Swift.Void)
    func execute(_ query: HKQuery)
    func stop(_ query: HKQuery)
    func splitTotalEnergy(_ totalEnergy: HKQuantity, start startDate: Date, end endDate: Date, resultsHandler resultsHandler: @escaping (HKQuantity?, HKQuantity?, Error?) -> Swift.Void)
    func dateOfBirth() throws -> Date
    func dateOfBirthComponents() throws -> DateComponents
    func biologicalSex() throws -> HKBiologicalSexObject
    func bloodType() throws -> HKBloodTypeObject
    func fitzpatrickSkinType() throws -> HKFitzpatrickSkinTypeObject
    func wheelchairUse() throws -> HKWheelchairUseObject
    func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    func enableBackgroundDelivery(for type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    func disableAllBackgroundDelivery(completion completion: @escaping (Bool, Error?) -> Swift.Void)
    func add(_ samples: [HKSample], to workout: HKWorkout, completion completion: @escaping (Bool, Error?) -> Swift.Void)
    func start(_ workoutSession: HKWorkoutSession)
    func end(_ workoutSession: HKWorkoutSession)
    func pause(_ workoutSession: HKWorkoutSession)
    func resumeWorkoutSession(_ workoutSession: HKWorkoutSession)
    func startWatchApp(with workoutConfiguration: HKWorkoutConfiguration, completion completion: @escaping (Bool, Error?) -> Swift.Void)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKHealthStore : CVarArg {
}
extension HKHealthStore : Equatable, Hashable {
    var hashValue: Int { get }
}
extension HKHealthStore {
    func add(_ samples: [HKSample], to workout: HKWorkout, completion completion: @escaping (Bool, Error?) -> Swift.Void)
    func start(_ workoutSession: HKWorkoutSession)
    func end(_ workoutSession: HKWorkoutSession)
    func pause(_ workoutSession: HKWorkoutSession)
    func resumeWorkoutSession(_ workoutSession: HKWorkoutSession)
    func startWatchApp(with workoutConfiguration: HKWorkoutConfiguration, completion completion: @escaping (Bool, Error?) -> Swift.Void)
}
extension HKHealthStore {
    func enableBackgroundDelivery(for type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    func disableAllBackgroundDelivery(completion completion: @escaping (Bool, Error?) -> Swift.Void)
}
extension HKHealthStore {
    func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
}
CVarArg, Equatable, Hashable

Declaration
From
func addSamples(_ samples: [HKSample], toWorkout workout: HKWorkout, completion completion: (Bool, NSError?) -> Void)
To
func add(_ samples: [HKSample], to workout: HKWorkout, completion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func authorizationStatusForType(_ type: HKObjectType) -> HKAuthorizationStatus
To
func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus

DeclarationDeprecation
From
func dateOfBirth() throws -> NSDate
--
To
func dateOfBirth() throws -> Date
iOS 10.0

Declaration
From
func deleteObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void)
To
func delete(_ objects: [HKObject], withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func deleteObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void)
To
func delete(_ object: HKObject, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func deleteObjectsOfType(_ objectType: HKObjectType, predicate predicate: NSPredicate, withCompletion completion: (Bool, Int, NSError?) -> Void)
To
func deleteObjects(of objectType: HKObjectType, predicate predicate: NSPredicate, withCompletion completion: @escaping (Bool, Int, Error?) -> Swift.Void)

Declaration
From
func disableAllBackgroundDeliveryWithCompletion(_ completion: (Bool, NSError?) -> Void)
To
func disableAllBackgroundDelivery(completion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func disableBackgroundDeliveryForType(_ type: HKObjectType, withCompletion completion: (Bool, NSError?) -> Void)
To
func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func earliestPermittedSampleDate() -> NSDate
To
func earliestPermittedSampleDate() -> Date

Declaration
From
func enableBackgroundDeliveryForType(_ type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: (Bool, NSError?) -> Void)
To
func enableBackgroundDelivery(for type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func executeQuery(_ query: HKQuery)
To
func execute(_ query: HKQuery)

Declaration
From
func handleAuthorizationForExtensionWithCompletion(_ completion: (Bool, NSError?) -> Void)
To
func handleAuthorizationForExtension(completion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func preferredUnitsForQuantityTypes(_ quantityTypes: Set<HKQuantityType>, completion completion: ([HKQuantityType : HKUnit], NSError?) -> Void)
To
func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)

Declaration
From
func requestAuthorizationToShareTypes(_ typesToShare: Set<HKSampleType>?, readTypes typesToRead: Set<HKObjectType>?, completion completion: (Bool, NSError?) -> Void)
To
func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func saveObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void)
To
func save(_ object: HKObject, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func saveObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void)
To
func save(_ objects: [HKObject], withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)

Declaration
From
func splitTotalEnergy(_ totalEnergy: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, resultsHandler resultsHandler: (HKQuantity?, HKQuantity?, NSError?) -> Void)
To
func splitTotalEnergy(_ totalEnergy: HKQuantity, start startDate: Date, end endDate: Date, resultsHandler resultsHandler: @escaping (HKQuantity?, HKQuantity?, Error?) -> Swift.Void)

Declaration
From
func stopQuery(_ query: HKQuery)
To
func stop(_ query: HKQuery)

Declaration
From
enum HKHeartRateSensorLocation : Int {
    case Other
    case Chest
    case Wrist
    case Finger
    case Hand
    case EarLobe
    case Foot
}
To
enum HKHeartRateSensorLocation : Int {
    case other
    case chest
    case wrist
    case finger
    case hand
    case earLobe
    case foot
}

Declaration
From
case Chest
To
case chest

Declaration
From
case EarLobe
To
case earLobe

Declaration
From
case Finger
To
case finger

Declaration
From
case Foot
To
case foot

Declaration
From
case Hand
To
case hand

Declaration
From
case Other
To
case other

Declaration
From
case Wrist
To
case wrist

Declaration
From
enum HKMetricPrefix : Int {
    case None
    case Pico
    case Nano
    case Micro
    case Milli
    case Centi
    case Deci
    case Deca
    case Hecto
    case Kilo
    case Mega
    case Giga
    case Tera
}
To
enum HKMetricPrefix : Int {
    case none
    case pico
    case nano
    case micro
    case milli
    case centi
    case deci
    case deca
    case hecto
    case kilo
    case mega
    case giga
    case tera
}

Declaration
From
case Centi
To
case centi

Declaration
From
case Deca
To
case deca

Declaration
From
case Deci
To
case deci

Declaration
From
case Giga
To
case giga

Declaration
From
case Hecto
To
case hecto

Declaration
From
case Kilo
To
case kilo

Declaration
From
case Mega
To
case mega

Declaration
From
case Micro
To
case micro

Declaration
From
case Milli
To
case milli

Declaration
From
case Nano
To
case nano

Declaration
From
case None
To
case none

Declaration
From
case Pico
To
case pico

Declaration
From
case Tera
To
case tera

Modified HKObject
DeclarationProtocols
From
class HKObject : NSObject, NSSecureCoding {
    var UUID: NSUUID { get }
    var source: HKSource { get }
    var sourceRevision: HKSourceRevision { get }
    var device: HKDevice? { get }
    var metadata: [String : AnyObject]? { get }
    init()
}
NSSecureCoding
To
class HKObject : NSObject, NSSecureCoding {
    var uuid: UUID { get }
    var source: HKSource { get }
    var sourceRevision: HKSourceRevision { get }
    var device: HKDevice? { get }
    var metadata: [String : Any]? { get }
    init()
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKObject : CVarArg {
}
extension HKObject : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSSecureCoding

Declaration
From
var metadata: [String : AnyObject]? { get }
To
var metadata: [String : Any]? { get }

Modified HKObject.uuid
Declaration
From
var UUID: NSUUID { get }
To
var uuid: UUID { get }

Modified HKObjectType
DeclarationProtocols
From
class HKObjectType : NSObject, NSSecureCoding, NSCopying {
    var identifier: String { get }
    init()
    class func quantityTypeForIdentifier(_ identifier: String) -> HKQuantityType?
    class func categoryTypeForIdentifier(_ identifier: String) -> HKCategoryType?
    class func characteristicTypeForIdentifier(_ identifier: String) -> HKCharacteristicType?
    class func correlationTypeForIdentifier(_ identifier: String) -> HKCorrelationType?
    class func workoutType() -> HKWorkoutType
    class func activitySummaryType() -> HKActivitySummaryType
}
NSCopying, NSSecureCoding
To
class HKObjectType : NSObject, NSSecureCoding, NSCopying {
    var identifier: String { get }
    init()
    class func quantityType(forIdentifier identifier: HKQuantityTypeIdentifier) -> HKQuantityType?
    class func categoryType(forIdentifier identifier: HKCategoryTypeIdentifier) -> HKCategoryType?
    class func characteristicType(forIdentifier identifier: HKCharacteristicTypeIdentifier) -> HKCharacteristicType?
    class func correlationType(forIdentifier identifier: HKCorrelationTypeIdentifier) -> HKCorrelationType?
    class func documentType(forIdentifier identifier: HKDocumentTypeIdentifier) -> HKDocumentType?
    class func workoutType() -> HKWorkoutType
    class func activitySummaryType() -> HKActivitySummaryType
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKObjectType : CVarArg {
}
extension HKObjectType : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
class func categoryTypeForIdentifier(_ identifier: String) -> HKCategoryType?
To
class func categoryType(forIdentifier identifier: HKCategoryTypeIdentifier) -> HKCategoryType?

Declaration
From
class func characteristicTypeForIdentifier(_ identifier: String) -> HKCharacteristicType?
To
class func characteristicType(forIdentifier identifier: HKCharacteristicTypeIdentifier) -> HKCharacteristicType?

Declaration
From
class func correlationTypeForIdentifier(_ identifier: String) -> HKCorrelationType?
To
class func correlationType(forIdentifier identifier: HKCorrelationTypeIdentifier) -> HKCorrelationType?

Declaration
From
class func quantityTypeForIdentifier(_ identifier: String) -> HKQuantityType?
To
class func quantityType(forIdentifier identifier: HKQuantityTypeIdentifier) -> HKQuantityType?

DeclarationProtocols
From
class HKObserverQuery : HKQuery {
    init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, updateHandler updateHandler: (HKObserverQuery, HKObserverQueryCompletionHandler, NSError?) -> Void)
}
--
To
class HKObserverQuery : HKQuery {
    init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, updateHandler updateHandler: @escaping (HKObserverQuery, HealthKit.HKObserverQueryCompletionHandler, Error?) -> Swift.Void)
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKObserverQuery : CVarArg {
}
extension HKObserverQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, updateHandler updateHandler: (HKObserverQuery, HKObserverQueryCompletionHandler, NSError?) -> Void)
To
init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, updateHandler updateHandler: @escaping (HKObserverQuery, HealthKit.HKObserverQueryCompletionHandler, Error?) -> Swift.Void)

Modified HKQuantity
DeclarationProtocols
From
class HKQuantity : NSObject, NSSecureCoding, NSCopying {
    init()
    convenience init(unit unit: HKUnit, doubleValue value: Double)
    class func quantityWithUnit(_ unit: HKUnit, doubleValue value: Double) -> Self
    func isCompatibleWithUnit(_ unit: HKUnit) -> Bool
    func doubleValueForUnit(_ unit: HKUnit) -> Double
    func compare(_ quantity: HKQuantity) -> NSComparisonResult
}
NSCopying, NSSecureCoding
To
class HKQuantity : NSObject, NSSecureCoding, NSCopying {
    init()
    convenience init(unit unit: HKUnit, doubleValue value: Double)
    class func withUnit(_ unit: HKUnit, doubleValue value: Double) -> Self
    func `is`(compatibleWith unit: HKUnit) -> Bool
    func doubleValue(for unit: HKUnit) -> Double
    func compare(_ quantity: HKQuantity) -> ComparisonResult
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKQuantity : CVarArg {
}
extension HKQuantity : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
func compare(_ quantity: HKQuantity) -> NSComparisonResult
To
func compare(_ quantity: HKQuantity) -> ComparisonResult

Declaration
From
func doubleValueForUnit(_ unit: HKUnit) -> Double
To
func doubleValue(for unit: HKUnit) -> Double

Declaration
From
func isCompatibleWithUnit(_ unit: HKUnit) -> Bool
To
func `is`(compatibleWith unit: HKUnit) -> Bool

Declaration
From
enum HKQuantityAggregationStyle : Int {
    case Cumulative
    case Discrete
}
To
enum HKQuantityAggregationStyle : Int {
    case cumulative
    case discrete
}

Declaration
From
case Cumulative
To
case cumulative

Declaration
From
case Discrete
To
case discrete

Declaration
From
class HKQuantitySample : HKSample {
    var quantityType: HKQuantityType { get }
    var quantity: HKQuantity { get }
    convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate)
    class func quantitySampleWithType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate) -> Self
    convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?)
    class func quantitySampleWithType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?) -> Self
    convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
    class func quantitySampleWithType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
}
To
class HKQuantitySample : HKSample {
    var quantityType: HKQuantityType { get }
    var quantity: HKQuantity { get }
    convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date)
    class func withType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date) -> Self
    convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?)
    class func withType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?) -> Self
    convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?)
    class func withType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
}

Declaration
From
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate)
To
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date)

Declaration
From
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
To
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?)

Declaration
From
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?)
To
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?)

Declaration
From
class HKQuantityType : HKSampleType {
    var aggregationStyle: HKQuantityAggregationStyle { get }
    func isCompatibleWithUnit(_ unit: HKUnit) -> Bool
}
To
class HKQuantityType : HKSampleType {
    var aggregationStyle: HKQuantityAggregationStyle { get }
    func `is`(compatibleWith unit: HKUnit) -> Bool
}

Declaration
From
func isCompatibleWithUnit(_ unit: HKUnit) -> Bool
To
func `is`(compatibleWith unit: HKUnit) -> Bool

NameDeclaration
FromHKQuantityTypeIdentifierActiveEnergyBurned
let HKQuantityTypeIdentifierActiveEnergyBurned: String
ToactiveEnergyBurned
static let activeEnergyBurned: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierAppleExerciseTime
let HKQuantityTypeIdentifierAppleExerciseTime: String
ToappleExerciseTime
static let appleExerciseTime: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBasalBodyTemperature
let HKQuantityTypeIdentifierBasalBodyTemperature: String
TobasalBodyTemperature
static let basalBodyTemperature: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBasalEnergyBurned
let HKQuantityTypeIdentifierBasalEnergyBurned: String
TobasalEnergyBurned
static let basalEnergyBurned: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBloodAlcoholContent
let HKQuantityTypeIdentifierBloodAlcoholContent: String
TobloodAlcoholContent
static let bloodAlcoholContent: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBloodGlucose
let HKQuantityTypeIdentifierBloodGlucose: String
TobloodGlucose
static let bloodGlucose: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBloodPressureDiastolic
let HKQuantityTypeIdentifierBloodPressureDiastolic: String
TobloodPressureDiastolic
static let bloodPressureDiastolic: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBloodPressureSystolic
let HKQuantityTypeIdentifierBloodPressureSystolic: String
TobloodPressureSystolic
static let bloodPressureSystolic: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBodyFatPercentage
let HKQuantityTypeIdentifierBodyFatPercentage: String
TobodyFatPercentage
static let bodyFatPercentage: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBodyMass
let HKQuantityTypeIdentifierBodyMass: String
TobodyMass
static let bodyMass: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBodyMassIndex
let HKQuantityTypeIdentifierBodyMassIndex: String
TobodyMassIndex
static let bodyMassIndex: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierBodyTemperature
let HKQuantityTypeIdentifierBodyTemperature: String
TobodyTemperature
static let bodyTemperature: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryBiotin
let HKQuantityTypeIdentifierDietaryBiotin: String
TodietaryBiotin
static let dietaryBiotin: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryCaffeine
let HKQuantityTypeIdentifierDietaryCaffeine: String
TodietaryCaffeine
static let dietaryCaffeine: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryCalcium
let HKQuantityTypeIdentifierDietaryCalcium: String
TodietaryCalcium
static let dietaryCalcium: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryCarbohydrates
let HKQuantityTypeIdentifierDietaryCarbohydrates: String
TodietaryCarbohydrates
static let dietaryCarbohydrates: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryChloride
let HKQuantityTypeIdentifierDietaryChloride: String
TodietaryChloride
static let dietaryChloride: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryCholesterol
let HKQuantityTypeIdentifierDietaryCholesterol: String
TodietaryCholesterol
static let dietaryCholesterol: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryChromium
let HKQuantityTypeIdentifierDietaryChromium: String
TodietaryChromium
static let dietaryChromium: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryCopper
let HKQuantityTypeIdentifierDietaryCopper: String
TodietaryCopper
static let dietaryCopper: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryEnergyConsumed
let HKQuantityTypeIdentifierDietaryEnergyConsumed: String
TodietaryEnergyConsumed
static let dietaryEnergyConsumed: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryFatMonounsaturated
let HKQuantityTypeIdentifierDietaryFatMonounsaturated: String
TodietaryFatMonounsaturated
static let dietaryFatMonounsaturated: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryFatPolyunsaturated
let HKQuantityTypeIdentifierDietaryFatPolyunsaturated: String
TodietaryFatPolyunsaturated
static let dietaryFatPolyunsaturated: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryFatSaturated
let HKQuantityTypeIdentifierDietaryFatSaturated: String
TodietaryFatSaturated
static let dietaryFatSaturated: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryFatTotal
let HKQuantityTypeIdentifierDietaryFatTotal: String
TodietaryFatTotal
static let dietaryFatTotal: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryFiber
let HKQuantityTypeIdentifierDietaryFiber: String
TodietaryFiber
static let dietaryFiber: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryFolate
let HKQuantityTypeIdentifierDietaryFolate: String
TodietaryFolate
static let dietaryFolate: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryIodine
let HKQuantityTypeIdentifierDietaryIodine: String
TodietaryIodine
static let dietaryIodine: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryIron
let HKQuantityTypeIdentifierDietaryIron: String
TodietaryIron
static let dietaryIron: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryMagnesium
let HKQuantityTypeIdentifierDietaryMagnesium: String
TodietaryMagnesium
static let dietaryMagnesium: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryManganese
let HKQuantityTypeIdentifierDietaryManganese: String
TodietaryManganese
static let dietaryManganese: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryMolybdenum
let HKQuantityTypeIdentifierDietaryMolybdenum: String
TodietaryMolybdenum
static let dietaryMolybdenum: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryNiacin
let HKQuantityTypeIdentifierDietaryNiacin: String
TodietaryNiacin
static let dietaryNiacin: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryPantothenicAcid
let HKQuantityTypeIdentifierDietaryPantothenicAcid: String
TodietaryPantothenicAcid
static let dietaryPantothenicAcid: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryPhosphorus
let HKQuantityTypeIdentifierDietaryPhosphorus: String
TodietaryPhosphorus
static let dietaryPhosphorus: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryPotassium
let HKQuantityTypeIdentifierDietaryPotassium: String
TodietaryPotassium
static let dietaryPotassium: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryProtein
let HKQuantityTypeIdentifierDietaryProtein: String
TodietaryProtein
static let dietaryProtein: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryRiboflavin
let HKQuantityTypeIdentifierDietaryRiboflavin: String
TodietaryRiboflavin
static let dietaryRiboflavin: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietarySelenium
let HKQuantityTypeIdentifierDietarySelenium: String
TodietarySelenium
static let dietarySelenium: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietarySodium
let HKQuantityTypeIdentifierDietarySodium: String
TodietarySodium
static let dietarySodium: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietarySugar
let HKQuantityTypeIdentifierDietarySugar: String
TodietarySugar
static let dietarySugar: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryThiamin
let HKQuantityTypeIdentifierDietaryThiamin: String
TodietaryThiamin
static let dietaryThiamin: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryVitaminA
let HKQuantityTypeIdentifierDietaryVitaminA: String
TodietaryVitaminA
static let dietaryVitaminA: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryVitaminB12
let HKQuantityTypeIdentifierDietaryVitaminB12: String
TodietaryVitaminB12
static let dietaryVitaminB12: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryVitaminB6
let HKQuantityTypeIdentifierDietaryVitaminB6: String
TodietaryVitaminB6
static let dietaryVitaminB6: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryVitaminC
let HKQuantityTypeIdentifierDietaryVitaminC: String
TodietaryVitaminC
static let dietaryVitaminC: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryVitaminD
let HKQuantityTypeIdentifierDietaryVitaminD: String
TodietaryVitaminD
static let dietaryVitaminD: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryVitaminE
let HKQuantityTypeIdentifierDietaryVitaminE: String
TodietaryVitaminE
static let dietaryVitaminE: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryVitaminK
let HKQuantityTypeIdentifierDietaryVitaminK: String
TodietaryVitaminK
static let dietaryVitaminK: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryWater
let HKQuantityTypeIdentifierDietaryWater: String
TodietaryWater
static let dietaryWater: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDietaryZinc
let HKQuantityTypeIdentifierDietaryZinc: String
TodietaryZinc
static let dietaryZinc: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDistanceCycling
let HKQuantityTypeIdentifierDistanceCycling: String
TodistanceCycling
static let distanceCycling: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierDistanceWalkingRunning
let HKQuantityTypeIdentifierDistanceWalkingRunning: String
TodistanceWalkingRunning
static let distanceWalkingRunning: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierElectrodermalActivity
let HKQuantityTypeIdentifierElectrodermalActivity: String
ToelectrodermalActivity
static let electrodermalActivity: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierFlightsClimbed
let HKQuantityTypeIdentifierFlightsClimbed: String
ToflightsClimbed
static let flightsClimbed: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierForcedExpiratoryVolume1
let HKQuantityTypeIdentifierForcedExpiratoryVolume1: String
ToforcedExpiratoryVolume1
static let forcedExpiratoryVolume1: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierForcedVitalCapacity
let HKQuantityTypeIdentifierForcedVitalCapacity: String
ToforcedVitalCapacity
static let forcedVitalCapacity: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierHeartRate
let HKQuantityTypeIdentifierHeartRate: String
ToheartRate
static let heartRate: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierHeight
let HKQuantityTypeIdentifierHeight: String
Toheight
static let height: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierInhalerUsage
let HKQuantityTypeIdentifierInhalerUsage: String
ToinhalerUsage
static let inhalerUsage: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierLeanBodyMass
let HKQuantityTypeIdentifierLeanBodyMass: String
ToleanBodyMass
static let leanBodyMass: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierNikeFuel
let HKQuantityTypeIdentifierNikeFuel: String
TonikeFuel
static let nikeFuel: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierNumberOfTimesFallen
let HKQuantityTypeIdentifierNumberOfTimesFallen: String
TonumberOfTimesFallen
static let numberOfTimesFallen: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierOxygenSaturation
let HKQuantityTypeIdentifierOxygenSaturation: String
TooxygenSaturation
static let oxygenSaturation: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierPeakExpiratoryFlowRate
let HKQuantityTypeIdentifierPeakExpiratoryFlowRate: String
TopeakExpiratoryFlowRate
static let peakExpiratoryFlowRate: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierPeripheralPerfusionIndex
let HKQuantityTypeIdentifierPeripheralPerfusionIndex: String
ToperipheralPerfusionIndex
static let peripheralPerfusionIndex: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierRespiratoryRate
let HKQuantityTypeIdentifierRespiratoryRate: String
TorespiratoryRate
static let respiratoryRate: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierStepCount
let HKQuantityTypeIdentifierStepCount: String
TostepCount
static let stepCount: HKQuantityTypeIdentifier

NameDeclaration
FromHKQuantityTypeIdentifierUVExposure
let HKQuantityTypeIdentifierUVExposure: String
TouvExposure
static let uvExposure: HKQuantityTypeIdentifier

Modified HKQuery
DeclarationProtocols
From
class HKQuery : NSObject {
    var objectType: HKObjectType? { get }
    var sampleType: HKSampleType? { get }
    var predicate: NSPredicate? { get }
    init()
}
extension HKQuery {
    class func predicateForObjectsWithMetadataKey(_ key: String) -> NSPredicate
    class func predicateForObjectsWithMetadataKey(_ key: String, allowedValues allowedValues: [AnyObject]) -> NSPredicate
    class func predicateForObjectsWithMetadataKey(_ key: String, operatorType operatorType: NSPredicateOperatorType, value value: AnyObject) -> NSPredicate
    class func predicateForObjectsFromSource(_ source: HKSource) -> NSPredicate
    class func predicateForObjectsFromSources(_ sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjectsFromSourceRevisions(_ sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjectsFromDevices(_ devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjectsWithDeviceProperty(_ key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObjectWithUUID(_ UUID: NSUUID) -> NSPredicate
    class func predicateForObjectsWithUUIDs(_ UUIDs: Set<NSUUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjectsFromWorkout(_ workout: HKWorkout) -> NSPredicate
}
extension HKQuery {
    class func predicateForSamplesWithStartDate(_ startDate: NSDate?, endDate endDate: NSDate?, options options: HKQueryOptions) -> NSPredicate
}
extension HKQuery {
    class func predicateForQuantitySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, quantity quantity: HKQuantity) -> NSPredicate
}
extension HKQuery {
    class func predicateForCategorySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, value value: Int) -> NSPredicate
}
extension HKQuery {
    class func predicateForWorkoutsWithWorkoutActivityType(_ workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, duration duration: NSTimeInterval) -> NSPredicate
    class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalDistance totalDistance: HKQuantity) -> NSPredicate
}
extension HKQuery {
    class func predicateForActivitySummaryWithDateComponents(_ dateComponents: NSDateComponents) -> NSPredicate
    class func predicateForActivitySummariesBetweenStartDateComponents(_ startDateComponents: NSDateComponents, endDateComponents endDateComponents: NSDateComponents) -> NSPredicate
}
--
To
class HKQuery : NSObject {
    var objectType: HKObjectType? { get }
    var sampleType: HKSampleType? { get }
    var predicate: NSPredicate? { get }
    init()
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKQuery : CVarArg {
}
extension HKQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
extension HKQuery {
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
}
extension HKQuery {
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
}
extension HKQuery {
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
}
extension HKQuery {
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
}
extension HKQuery {
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
}
extension HKQuery {
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
}
CVarArg, Equatable, Hashable

Declaration
From
class func predicateForActivitySummariesBetweenStartDateComponents(_ startDateComponents: NSDateComponents, endDateComponents endDateComponents: NSDateComponents) -> NSPredicate
To
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate

Declaration
From
class func predicateForActivitySummaryWithDateComponents(_ dateComponents: NSDateComponents) -> NSPredicate
To
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate

Declaration
From
class func predicateForCategorySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, value value: Int) -> NSPredicate
To
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate

Declaration
From
class func predicateForObjectWithUUID(_ UUID: NSUUID) -> NSPredicate
To
class func predicateForObject(with UUID: UUID) -> NSPredicate

Declaration
From
class func predicateForObjectsFromSource(_ source: HKSource) -> NSPredicate
To
class func predicateForObjects(from source: HKSource) -> NSPredicate

Declaration
From
class func predicateForObjectsFromDevices(_ devices: Set<HKDevice>) -> NSPredicate
To
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate

Declaration
From
class func predicateForObjectsFromSourceRevisions(_ sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
To
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate

Declaration
From
class func predicateForObjectsFromSources(_ sources: Set<HKSource>) -> NSPredicate
To
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate

Declaration
From
class func predicateForObjectsFromWorkout(_ workout: HKWorkout) -> NSPredicate
To
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate

Declaration
From
class func predicateForObjectsWithUUIDs(_ UUIDs: Set<NSUUID>) -> NSPredicate
To
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate

Declaration
From
class func predicateForObjectsWithDeviceProperty(_ key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
To
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate

Declaration
From
class func predicateForObjectsWithMetadataKey(_ key: String) -> NSPredicate
To
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate

Declaration
From
class func predicateForObjectsWithMetadataKey(_ key: String, allowedValues allowedValues: [AnyObject]) -> NSPredicate
To
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate

Declaration
From
class func predicateForObjectsWithMetadataKey(_ key: String, operatorType operatorType: NSPredicateOperatorType, value value: AnyObject) -> NSPredicate
To
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate

Declaration
From
class func predicateForQuantitySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, quantity quantity: HKQuantity) -> NSPredicate
To
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate

Declaration
From
class func predicateForSamplesWithStartDate(_ startDate: NSDate?, endDate endDate: NSDate?, options options: HKQueryOptions) -> NSPredicate
To
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate

Declaration
From
class func predicateForWorkoutsWithWorkoutActivityType(_ workoutActivityType: HKWorkoutActivityType) -> NSPredicate
To
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate

Declaration
From
class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, duration duration: NSTimeInterval) -> NSPredicate
To
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate

Declaration
From
class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalDistance totalDistance: HKQuantity) -> NSPredicate
To
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate

Declaration
From
class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
To
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate

Modified HKQueryAnchor
DeclarationProtocols
From
class HKQueryAnchor : NSObject, NSSecureCoding, NSCopying {
    convenience init(fromValue value: Int)
    class func anchorFromValue(_ value: Int) -> Self
    init()
}
NSCopying, NSSecureCoding
To
class HKQueryAnchor : NSObject, NSSecureCoding, NSCopying {
    convenience init(fromValue value: Int)
    class func fromValue(_ value: Int) -> Self
    init()
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKQueryAnchor : CVarArg {
}
extension HKQueryAnchor : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

DeclarationProtocols
From
struct HKQueryOptions : OptionSetType {
    init(rawValue rawValue: UInt)
    static var None: HKQueryOptions { get }
    static var StrictStartDate: HKQueryOptions { get }
    static var StrictEndDate: HKQueryOptions { get }
}
OptionSetType
To
struct HKQueryOptions : OptionSet {
    init(rawValue rawValue: UInt)
    static var none: HKQueryOptions { get }
    static var strictStartDate: HKQueryOptions { get }
    static var strictEndDate: HKQueryOptions { get }
    func intersect(_ other: HKQueryOptions) -> HKQueryOptions
    func exclusiveOr(_ other: HKQueryOptions) -> HKQueryOptions
    mutating func unionInPlace(_ other: HKQueryOptions)
    mutating func intersectInPlace(_ other: HKQueryOptions)
    mutating func exclusiveOrInPlace(_ other: HKQueryOptions)
    func isSubsetOf(_ other: HKQueryOptions) -> Bool
    func isDisjointWith(_ other: HKQueryOptions) -> Bool
    func isSupersetOf(_ other: HKQueryOptions) -> Bool
    mutating func subtractInPlace(_ other: HKQueryOptions)
    func isStrictSupersetOf(_ other: HKQueryOptions) -> Bool
    func isStrictSubsetOf(_ other: HKQueryOptions) -> Bool
}
extension HKQueryOptions {
    func union(_ other: HKQueryOptions) -> HKQueryOptions
    func intersection(_ other: HKQueryOptions) -> HKQueryOptions
    func symmetricDifference(_ other: HKQueryOptions) -> HKQueryOptions
}
extension HKQueryOptions {
    func contains(_ member: HKQueryOptions) -> Bool
    mutating func insert(_ newMember: HKQueryOptions) -> (inserted: Bool, memberAfterInsert: HKQueryOptions)
    mutating func remove(_ member: HKQueryOptions) -> HKQueryOptions?
    mutating func update(with newMember: HKQueryOptions) -> HKQueryOptions?
}
extension HKQueryOptions {
    convenience init()
    mutating func formUnion(_ other: HKQueryOptions)
    mutating func formIntersection(_ other: HKQueryOptions)
    mutating func formSymmetricDifference(_ other: HKQueryOptions)
}
extension HKQueryOptions {
    convenience init<S : Sequence where S.Iterator.Element == HKQueryOptions>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: HKQueryOptions...)
    mutating func subtract(_ other: HKQueryOptions)
    func isSubset(of other: HKQueryOptions) -> Bool
    func isSuperset(of other: HKQueryOptions) -> Bool
    func isDisjoint(with other: HKQueryOptions) -> Bool
    func subtracting(_ other: HKQueryOptions) -> HKQueryOptions
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: HKQueryOptions) -> Bool
    func isStrictSubset(of other: HKQueryOptions) -> Bool
}
OptionSet

Declaration
From
static var StrictEndDate: HKQueryOptions { get }
To
static var strictEndDate: HKQueryOptions { get }

Declaration
From
static var StrictStartDate: HKQueryOptions { get }
To
static var strictStartDate: HKQueryOptions { get }

Modified HKSample
Declaration
From
class HKSample : HKObject {
    var sampleType: HKSampleType { get }
    var startDate: NSDate { get }
    var endDate: NSDate { get }
}
To
class HKSample : HKObject {
    var sampleType: HKSampleType { get }
    var startDate: Date { get }
    var endDate: Date { get }
}

Declaration
From
var endDate: NSDate { get }
To
var endDate: Date { get }

Declaration
From
var startDate: NSDate { get }
To
var startDate: Date { get }

Modified HKSampleQuery
DeclarationProtocols
From
class HKSampleQuery : HKQuery {
    var limit: Int { get }
    var sortDescriptors: [NSSortDescriptor]? { get }
    init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: (HKSampleQuery, [HKSample]?, NSError?) -> Void)
}
--
To
class HKSampleQuery : HKQuery {
    var limit: Int { get }
    var sortDescriptors: [NSSortDescriptor]? { get }
    init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: @escaping (HKSampleQuery, [HKSample]?, Error?) -> Swift.Void)
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKSampleQuery : CVarArg {
}
extension HKSampleQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: (HKSampleQuery, [HKSample]?, NSError?) -> Void)
To
init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: @escaping (HKSampleQuery, [HKSample]?, Error?) -> Swift.Void)

Modified HKSource
DeclarationProtocols
From
class HKSource : NSObject, NSSecureCoding, NSCopying {
    var name: String { get }
    var bundleIdentifier: String { get }
    class func defaultSource() -> HKSource
    init()
}
NSCopying, NSSecureCoding
To
class HKSource : NSObject, NSSecureCoding, NSCopying {
    var name: String { get }
    var bundleIdentifier: String { get }
    class func `default`() -> HKSource
    init()
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKSource : CVarArg {
}
extension HKSource : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
class func defaultSource() -> HKSource
To
class func `default`() -> HKSource

Modified HKSourceQuery
DeclarationProtocols
From
class HKSourceQuery : HKQuery {
    init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: (HKSourceQuery, Set<HKSource>?, NSError?) -> Void)
}
--
To
class HKSourceQuery : HKQuery {
    init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: @escaping (HKSourceQuery, Set<HKSource>?, Error?) -> Swift.Void)
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKSourceQuery : CVarArg {
}
extension HKSourceQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: (HKSourceQuery, Set<HKSource>?, NSError?) -> Void)
To
init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: @escaping (HKSourceQuery, Set<HKSource>?, Error?) -> Swift.Void)

DeclarationProtocols
From
class HKSourceRevision : NSObject, NSSecureCoding, NSCopying {
    var source: HKSource { get }
    var version: String? { get }
    init(source source: HKSource, version version: String)
    init()
}
NSCopying, NSSecureCoding
To
class HKSourceRevision : NSObject, NSSecureCoding, NSCopying {
    var source: HKSource { get }
    var version: String? { get }
    init(source source: HKSource, version version: String?)
    init()
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKSourceRevision : CVarArg {
}
extension HKSourceRevision : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
init(source source: HKSource, version version: String)
To
init(source source: HKSource, version version: String?)

Modified HKStatistics
DeclarationProtocols
From
class HKStatistics : NSObject, NSSecureCoding, NSCopying {
    var quantityType: HKQuantityType { get }
    var startDate: NSDate { get }
    var endDate: NSDate { get }
    var sources: [HKSource]? { get }
    init()
    func averageQuantityForSource(_ source: HKSource) -> HKQuantity?
    func averageQuantity() -> HKQuantity?
    func minimumQuantityForSource(_ source: HKSource) -> HKQuantity?
    func minimumQuantity() -> HKQuantity?
    func maximumQuantityForSource(_ source: HKSource) -> HKQuantity?
    func maximumQuantity() -> HKQuantity?
    func sumQuantityForSource(_ source: HKSource) -> HKQuantity?
    func sumQuantity() -> HKQuantity?
}
NSCopying, NSSecureCoding
To
class HKStatistics : NSObject, NSSecureCoding, NSCopying {
    var quantityType: HKQuantityType { get }
    var startDate: Date { get }
    var endDate: Date { get }
    var sources: [HKSource]? { get }
    init()
    func averageQuantity(for source: HKSource) -> HKQuantity?
    func averageQuantity() -> HKQuantity?
    func minimumQuantity(for source: HKSource) -> HKQuantity?
    func minimumQuantity() -> HKQuantity?
    func maximumQuantity(for source: HKSource) -> HKQuantity?
    func maximumQuantity() -> HKQuantity?
    func sumQuantity(for source: HKSource) -> HKQuantity?
    func sumQuantity() -> HKQuantity?
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKStatistics : CVarArg {
}
extension HKStatistics : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
func averageQuantityForSource(_ source: HKSource) -> HKQuantity?
To
func averageQuantity(for source: HKSource) -> HKQuantity?

Declaration
From
var endDate: NSDate { get }
To
var endDate: Date { get }

Declaration
From
func maximumQuantityForSource(_ source: HKSource) -> HKQuantity?
To
func maximumQuantity(for source: HKSource) -> HKQuantity?

Declaration
From
func minimumQuantityForSource(_ source: HKSource) -> HKQuantity?
To
func minimumQuantity(for source: HKSource) -> HKQuantity?

Declaration
From
var startDate: NSDate { get }
To
var startDate: Date { get }

Declaration
From
func sumQuantityForSource(_ source: HKSource) -> HKQuantity?
To
func sumQuantity(for source: HKSource) -> HKQuantity?

DeclarationProtocols
From
class HKStatisticsCollection : NSObject {
    init()
    func statisticsForDate(_ date: NSDate) -> HKStatistics?
    func enumerateStatisticsFromDate(_ startDate: NSDate, toDate endDate: NSDate, withBlock block: (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Void)
    func statistics() -> [HKStatistics]
    func sources() -> Set<HKSource>
}
--
To
class HKStatisticsCollection : NSObject {
    init()
    func statistics(for date: Date) -> HKStatistics?
    func enumerateStatistics(from startDate: Date, to endDate: Date, with block: @escaping (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
    func statistics() -> [HKStatistics]
    func sources() -> Set<HKSource>
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKStatisticsCollection : CVarArg {
}
extension HKStatisticsCollection : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
func enumerateStatisticsFromDate(_ startDate: NSDate, toDate endDate: NSDate, withBlock block: (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Void)
To
func enumerateStatistics(from startDate: Date, to endDate: Date, with block: @escaping (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)

Declaration
From
func statisticsForDate(_ date: NSDate) -> HKStatistics?
To
func statistics(for date: Date) -> HKStatistics?

DeclarationProtocols
From
class HKStatisticsCollectionQuery : HKQuery {
    var anchorDate: NSDate { get }
    var options: HKStatisticsOptions { get }
    @NSCopying var intervalComponents: NSDateComponents { get }
    var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, NSError?) -> Void)?
    var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, NSError?) -> Void)?
    init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions, anchorDate anchorDate: NSDate, intervalComponents intervalComponents: NSDateComponents)
}
--
To
class HKStatisticsCollectionQuery : HKQuery {
    var anchorDate: Date { get }
    var options: HKStatisticsOptions { get }
    var intervalComponents: DateComponents { get }
    var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, Error?) -> Swift.Void)?
    var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, Error?) -> Swift.Void)?
    init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions = [], anchorDate anchorDate: Date, intervalComponents intervalComponents: DateComponents)
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKStatisticsCollectionQuery : CVarArg {
}
extension HKStatisticsCollectionQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
var anchorDate: NSDate { get }
To
var anchorDate: Date { get }

Declaration
From
init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions, anchorDate anchorDate: NSDate, intervalComponents intervalComponents: NSDateComponents)
To
init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions = [], anchorDate anchorDate: Date, intervalComponents intervalComponents: DateComponents)

Declaration
From
var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, NSError?) -> Void)?
To
var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, Error?) -> Swift.Void)?

Declaration
From
@NSCopying var intervalComponents: NSDateComponents { get }
To
var intervalComponents: DateComponents { get }

Declaration
From
var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, NSError?) -> Void)?
To
var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, Error?) -> Swift.Void)?

DeclarationProtocols
From
struct HKStatisticsOptions : OptionSetType {
    init(rawValue rawValue: UInt)
    static var None: HKStatisticsOptions { get }
    static var SeparateBySource: HKStatisticsOptions { get }
    static var DiscreteAverage: HKStatisticsOptions { get }
    static var DiscreteMin: HKStatisticsOptions { get }
    static var DiscreteMax: HKStatisticsOptions { get }
    static var CumulativeSum: HKStatisticsOptions { get }
}
OptionSetType
To
struct HKStatisticsOptions : OptionSet {
    init(rawValue rawValue: UInt)
    static var none: HKStatisticsOptions { get }
    static var separateBySource: HKStatisticsOptions { get }
    static var discreteAverage: HKStatisticsOptions { get }
    static var discreteMin: HKStatisticsOptions { get }
    static var discreteMax: HKStatisticsOptions { get }
    static var cumulativeSum: HKStatisticsOptions { get }
    func intersect(_ other: HKStatisticsOptions) -> HKStatisticsOptions
    func exclusiveOr(_ other: HKStatisticsOptions) -> HKStatisticsOptions
    mutating func unionInPlace(_ other: HKStatisticsOptions)
    mutating func intersectInPlace(_ other: HKStatisticsOptions)
    mutating func exclusiveOrInPlace(_ other: HKStatisticsOptions)
    func isSubsetOf(_ other: HKStatisticsOptions) -> Bool
    func isDisjointWith(_ other: HKStatisticsOptions) -> Bool
    func isSupersetOf(_ other: HKStatisticsOptions) -> Bool
    mutating func subtractInPlace(_ other: HKStatisticsOptions)
    func isStrictSupersetOf(_ other: HKStatisticsOptions) -> Bool
    func isStrictSubsetOf(_ other: HKStatisticsOptions) -> Bool
}
extension HKStatisticsOptions {
    func union(_ other: HKStatisticsOptions) -> HKStatisticsOptions
    func intersection(_ other: HKStatisticsOptions) -> HKStatisticsOptions
    func symmetricDifference(_ other: HKStatisticsOptions) -> HKStatisticsOptions
}
extension HKStatisticsOptions {
    func contains(_ member: HKStatisticsOptions) -> Bool
    mutating func insert(_ newMember: HKStatisticsOptions) -> (inserted: Bool, memberAfterInsert: HKStatisticsOptions)
    mutating func remove(_ member: HKStatisticsOptions) -> HKStatisticsOptions?
    mutating func update(with newMember: HKStatisticsOptions) -> HKStatisticsOptions?
}
extension HKStatisticsOptions {
    convenience init()
    mutating func formUnion(_ other: HKStatisticsOptions)
    mutating func formIntersection(_ other: HKStatisticsOptions)
    mutating func formSymmetricDifference(_ other: HKStatisticsOptions)
}
extension HKStatisticsOptions {
    convenience init<S : Sequence where S.Iterator.Element == HKStatisticsOptions>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: HKStatisticsOptions...)
    mutating func subtract(_ other: HKStatisticsOptions)
    func isSubset(of other: HKStatisticsOptions) -> Bool
    func isSuperset(of other: HKStatisticsOptions) -> Bool
    func isDisjoint(with other: HKStatisticsOptions) -> Bool
    func subtracting(_ other: HKStatisticsOptions) -> HKStatisticsOptions
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: HKStatisticsOptions) -> Bool
    func isStrictSubset(of other: HKStatisticsOptions) -> Bool
}
OptionSet

Declaration
From
static var CumulativeSum: HKStatisticsOptions { get }
To
static var cumulativeSum: HKStatisticsOptions { get }

Declaration
From
static var DiscreteAverage: HKStatisticsOptions { get }
To
static var discreteAverage: HKStatisticsOptions { get }

Declaration
From
static var DiscreteMax: HKStatisticsOptions { get }
To
static var discreteMax: HKStatisticsOptions { get }

Declaration
From
static var DiscreteMin: HKStatisticsOptions { get }
To
static var discreteMin: HKStatisticsOptions { get }

Declaration
From
static var SeparateBySource: HKStatisticsOptions { get }
To
static var separateBySource: HKStatisticsOptions { get }

DeclarationProtocols
From
class HKStatisticsQuery : HKQuery {
    init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions, completionHandler handler: (HKStatisticsQuery, HKStatistics?, NSError?) -> Void)
}
--
To
class HKStatisticsQuery : HKQuery {
    init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions = [], completionHandler handler: @escaping (HKStatisticsQuery, HKStatistics?, Error?) -> Swift.Void)
    class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
    class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
    class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
    class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
    class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
    class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
    class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
    class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
    class func predicateForObjects(from source: HKSource) -> NSPredicate
    class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
    class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
    class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
    class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
    class func predicateForObject(with UUID: UUID) -> NSPredicate
    class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
    class func predicateForObjectsWithNoCorrelation() -> NSPredicate
    class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKStatisticsQuery : CVarArg {
}
extension HKStatisticsQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions, completionHandler handler: (HKStatisticsQuery, HKStatistics?, NSError?) -> Void)
To
init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions = [], completionHandler handler: @escaping (HKStatisticsQuery, HKStatistics?, Error?) -> Swift.Void)

Modified HKUnit
DeclarationProtocols
From
class HKUnit : NSObject, NSSecureCoding, NSCopying {
    var unitString: String { get }
    init()
    convenience init(fromString string: String)
    class func unitFromString(_ string: String) -> Self
    convenience init(fromMassFormatterUnit massFormatterUnit: NSMassFormatterUnit)
    class func unitFromMassFormatterUnit(_ massFormatterUnit: NSMassFormatterUnit) -> Self
    class func massFormatterUnitFromUnit(_ unit: HKUnit) -> NSMassFormatterUnit
    convenience init(fromLengthFormatterUnit lengthFormatterUnit: NSLengthFormatterUnit)
    class func unitFromLengthFormatterUnit(_ lengthFormatterUnit: NSLengthFormatterUnit) -> Self
    class func lengthFormatterUnitFromUnit(_ unit: HKUnit) -> NSLengthFormatterUnit
    convenience init(fromEnergyFormatterUnit energyFormatterUnit: NSEnergyFormatterUnit)
    class func unitFromEnergyFormatterUnit(_ energyFormatterUnit: NSEnergyFormatterUnit) -> Self
    class func energyFormatterUnitFromUnit(_ unit: HKUnit) -> NSEnergyFormatterUnit
    func isNull() -> Bool
}
extension HKUnit {
    class func gramUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
    class func gramUnit() -> Self
    class func ounceUnit() -> Self
    class func poundUnit() -> Self
    class func stoneUnit() -> Self
    class func moleUnitWithMetricPrefix(_ prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self
    class func moleUnitWithMolarMass(_ gramsPerMole: Double) -> Self
}
extension HKUnit {
    class func meterUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
    class func meterUnit() -> Self
    class func inchUnit() -> Self
    class func footUnit() -> Self
    class func yardUnit() -> Self
    class func mileUnit() -> Self
}
extension HKUnit {
    class func literUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
    class func literUnit() -> Self
    class func fluidOunceUSUnit() -> Self
    class func fluidOunceImperialUnit() -> Self
    class func pintUSUnit() -> Self
    class func pintImperialUnit() -> Self
    class func cupUSUnit() -> Self
    class func cupImperialUnit() -> Self
}
extension HKUnit {
    class func pascalUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
    class func pascalUnit() -> Self
    class func millimeterOfMercuryUnit() -> Self
    class func centimeterOfWaterUnit() -> Self
    class func atmosphereUnit() -> Self
}
extension HKUnit {
    class func secondUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
    class func secondUnit() -> Self
    class func minuteUnit() -> Self
    class func hourUnit() -> Self
    class func dayUnit() -> Self
}
extension HKUnit {
    class func jouleUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
    class func jouleUnit() -> Self
    class func calorieUnit() -> Self
    class func kilocalorieUnit() -> Self
}
extension HKUnit {
    class func degreeCelsiusUnit() -> Self
    class func degreeFahrenheitUnit() -> Self
    class func kelvinUnit() -> Self
}
extension HKUnit {
    class func siemenUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
    class func siemenUnit() -> Self
}
extension HKUnit {
    class func countUnit() -> Self
    class func percentUnit() -> Self
}
extension HKUnit {
    func unitMultipliedByUnit(_ unit: HKUnit) -> HKUnit
    func unitDividedByUnit(_ unit: HKUnit) -> HKUnit
    func unitRaisedToPower(_ power: Int) -> HKUnit
    func reciprocalUnit() -> HKUnit
}
NSCopying, NSSecureCoding
To
class HKUnit : NSObject, NSSecureCoding, NSCopying {
    var unitString: String { get }
    init()
    convenience init(from string: String)
    class func fromString(_ string: String) -> Self
    convenience init(from massFormatterUnit: MassFormatter.Unit)
    class func fromMassFormatterUnit(_ massFormatterUnit: MassFormatter.Unit) -> Self
    class func massFormatterUnit(from unit: HKUnit) -> MassFormatter.Unit
    convenience init(from lengthFormatterUnit: LengthFormatter.Unit)
    class func fromLengthFormatterUnit(_ lengthFormatterUnit: LengthFormatter.Unit) -> Self
    class func lengthFormatterUnit(from unit: HKUnit) -> LengthFormatter.Unit
    convenience init(from energyFormatterUnit: EnergyFormatter.Unit)
    class func fromEnergyFormatterUnit(_ energyFormatterUnit: EnergyFormatter.Unit) -> Self
    class func energyFormatterUnit(from unit: HKUnit) -> EnergyFormatter.Unit
    func isNull() -> Bool
    func unitMultiplied(by unit: HKUnit) -> HKUnit
    func unitDivided(by unit: HKUnit) -> HKUnit
    func unitRaised(toPower power: Int) -> HKUnit
    func reciprocal() -> HKUnit
    class func count() -> Self
    class func percent() -> Self
    class func siemenUnit(with prefix: HKMetricPrefix) -> Self
    class func siemen() -> Self
    class func degreeCelsius() -> Self
    class func degreeFahrenheit() -> Self
    class func kelvin() -> Self
    class func jouleUnit(with prefix: HKMetricPrefix) -> Self
    class func joule() -> Self
    class func calorie() -> Self
    class func kilocalorie() -> Self
    class func secondUnit(with prefix: HKMetricPrefix) -> Self
    class func second() -> Self
    class func minute() -> Self
    class func hour() -> Self
    class func day() -> Self
    class func pascalUnit(with prefix: HKMetricPrefix) -> Self
    class func pascal() -> Self
    class func millimeterOfMercury() -> Self
    class func centimeterOfWater() -> Self
    class func atmosphere() -> Self
    class func literUnit(with prefix: HKMetricPrefix) -> Self
    class func liter() -> Self
    class func fluidOunceUS() -> Self
    class func fluidOunceImperial() -> Self
    class func pintUS() -> Self
    class func pintImperial() -> Self
    class func cupUS() -> Self
    class func cupImperial() -> Self
    class func meterUnit(with prefix: HKMetricPrefix) -> Self
    class func meter() -> Self
    class func inch() -> Self
    class func foot() -> Self
    class func yard() -> Self
    class func mile() -> Self
    class func gramUnit(with prefix: HKMetricPrefix) -> Self
    class func gram() -> Self
    class func ounce() -> Self
    class func pound() -> Self
    class func stone() -> Self
    class func moleUnit(with prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self
    class func moleUnit(withMolarMass gramsPerMole: Double) -> Self
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKUnit : CVarArg {
}
extension HKUnit : Equatable, Hashable {
    var hashValue: Int { get }
}
extension HKUnit {
    class func gramUnit(with prefix: HKMetricPrefix) -> Self
    class func gram() -> Self
    class func ounce() -> Self
    class func pound() -> Self
    class func stone() -> Self
    class func moleUnit(with prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self
    class func moleUnit(withMolarMass gramsPerMole: Double) -> Self
}
extension HKUnit {
    class func meterUnit(with prefix: HKMetricPrefix) -> Self
    class func meter() -> Self
    class func inch() -> Self
    class func foot() -> Self
    class func yard() -> Self
    class func mile() -> Self
}
extension HKUnit {
    class func literUnit(with prefix: HKMetricPrefix) -> Self
    class func liter() -> Self
    class func fluidOunceUS() -> Self
    class func fluidOunceImperial() -> Self
    class func pintUS() -> Self
    class func pintImperial() -> Self
    class func cupUS() -> Self
    class func cupImperial() -> Self
}
extension HKUnit {
    class func pascalUnit(with prefix: HKMetricPrefix) -> Self
    class func pascal() -> Self
    class func millimeterOfMercury() -> Self
    class func centimeterOfWater() -> Self
    class func atmosphere() -> Self
}
extension HKUnit {
    class func secondUnit(with prefix: HKMetricPrefix) -> Self
    class func second() -> Self
    class func minute() -> Self
    class func hour() -> Self
    class func day() -> Self
}
extension HKUnit {
    class func jouleUnit(with prefix: HKMetricPrefix) -> Self
    class func joule() -> Self
    class func calorie() -> Self
    class func kilocalorie() -> Self
}
extension HKUnit {
    class func degreeCelsius() -> Self
    class func degreeFahrenheit() -> Self
    class func kelvin() -> Self
}
extension HKUnit {
    class func siemenUnit(with prefix: HKMetricPrefix) -> Self
    class func siemen() -> Self
}
extension HKUnit {
    class func count() -> Self
    class func percent() -> Self
}
extension HKUnit {
    func unitMultiplied(by unit: HKUnit) -> HKUnit
    func unitDivided(by unit: HKUnit) -> HKUnit
    func unitRaised(toPower power: Int) -> HKUnit
    func reciprocal() -> HKUnit
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
class func atmosphereUnit() -> Self
To
class func atmosphere() -> Self

Declaration
From
class func calorieUnit() -> Self
To
class func calorie() -> Self

Declaration
From
class func centimeterOfWaterUnit() -> Self
To
class func centimeterOfWater() -> Self

Declaration
From
class func countUnit() -> Self
To
class func count() -> Self

Declaration
From
class func cupImperialUnit() -> Self
To
class func cupImperial() -> Self

Declaration
From
class func cupUSUnit() -> Self
To
class func cupUS() -> Self

Declaration
From
class func dayUnit() -> Self
To
class func day() -> Self

Declaration
From
class func degreeCelsiusUnit() -> Self
To
class func degreeCelsius() -> Self

Declaration
From
class func degreeFahrenheitUnit() -> Self
To
class func degreeFahrenheit() -> Self

Declaration
From
class func energyFormatterUnitFromUnit(_ unit: HKUnit) -> NSEnergyFormatterUnit
To
class func energyFormatterUnit(from unit: HKUnit) -> EnergyFormatter.Unit

Declaration
From
class func fluidOunceImperialUnit() -> Self
To
class func fluidOunceImperial() -> Self

Declaration
From
class func fluidOunceUSUnit() -> Self
To
class func fluidOunceUS() -> Self

Declaration
From
class func footUnit() -> Self
To
class func foot() -> Self

Declaration
From
class func gramUnit() -> Self
To
class func gram() -> Self

Declaration
From
class func gramUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
To
class func gramUnit(with prefix: HKMetricPrefix) -> Self

Declaration
From
class func hourUnit() -> Self
To
class func hour() -> Self

Declaration
From
class func inchUnit() -> Self
To
class func inch() -> Self

Declaration
From
convenience init(fromMassFormatterUnit massFormatterUnit: NSMassFormatterUnit)
To
convenience init(from massFormatterUnit: MassFormatter.Unit)

Declaration
From
convenience init(fromLengthFormatterUnit lengthFormatterUnit: NSLengthFormatterUnit)
To
convenience init(from lengthFormatterUnit: LengthFormatter.Unit)

Declaration
From
convenience init(fromString string: String)
To
convenience init(from string: String)

Declaration
From
convenience init(fromEnergyFormatterUnit energyFormatterUnit: NSEnergyFormatterUnit)
To
convenience init(from energyFormatterUnit: EnergyFormatter.Unit)

Declaration
From
class func jouleUnit() -> Self
To
class func joule() -> Self

Declaration
From
class func jouleUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
To
class func jouleUnit(with prefix: HKMetricPrefix) -> Self

Declaration
From
class func kelvinUnit() -> Self
To
class func kelvin() -> Self

Declaration
From
class func kilocalorieUnit() -> Self
To
class func kilocalorie() -> Self

Declaration
From
class func lengthFormatterUnitFromUnit(_ unit: HKUnit) -> NSLengthFormatterUnit
To
class func lengthFormatterUnit(from unit: HKUnit) -> LengthFormatter.Unit

Declaration
From
class func literUnit() -> Self
To
class func liter() -> Self

Declaration
From
class func literUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
To
class func literUnit(with prefix: HKMetricPrefix) -> Self

Declaration
From
class func massFormatterUnitFromUnit(_ unit: HKUnit) -> NSMassFormatterUnit
To
class func massFormatterUnit(from unit: HKUnit) -> MassFormatter.Unit

Declaration
From
class func meterUnit() -> Self
To
class func meter() -> Self

Declaration
From
class func meterUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
To
class func meterUnit(with prefix: HKMetricPrefix) -> Self

Declaration
From
class func mileUnit() -> Self
To
class func mile() -> Self

Declaration
From
class func millimeterOfMercuryUnit() -> Self
To
class func millimeterOfMercury() -> Self

Declaration
From
class func minuteUnit() -> Self
To
class func minute() -> Self

Declaration
From
class func moleUnitWithMetricPrefix(_ prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self
To
class func moleUnit(with prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self

Declaration
From
class func moleUnitWithMolarMass(_ gramsPerMole: Double) -> Self
To
class func moleUnit(withMolarMass gramsPerMole: Double) -> Self

Declaration
From
class func ounceUnit() -> Self
To
class func ounce() -> Self

Declaration
From
class func pascalUnit() -> Self
To
class func pascal() -> Self

Declaration
From
class func pascalUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
To
class func pascalUnit(with prefix: HKMetricPrefix) -> Self

Declaration
From
class func percentUnit() -> Self
To
class func percent() -> Self

Declaration
From
class func pintImperialUnit() -> Self
To
class func pintImperial() -> Self

Declaration
From
class func pintUSUnit() -> Self
To
class func pintUS() -> Self

Declaration
From
class func poundUnit() -> Self
To
class func pound() -> Self

Declaration
From
func reciprocalUnit() -> HKUnit
To
func reciprocal() -> HKUnit

Declaration
From
class func secondUnit() -> Self
To
class func second() -> Self

Declaration
From
class func secondUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
To
class func secondUnit(with prefix: HKMetricPrefix) -> Self

Declaration
From
class func siemenUnit() -> Self
To
class func siemen() -> Self

Declaration
From
class func siemenUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
To
class func siemenUnit(with prefix: HKMetricPrefix) -> Self

Declaration
From
class func stoneUnit() -> Self
To
class func stone() -> Self

Declaration
From
func unitDividedByUnit(_ unit: HKUnit) -> HKUnit
To
func unitDivided(by unit: HKUnit) -> HKUnit

Declaration
From
func unitMultipliedByUnit(_ unit: HKUnit) -> HKUnit
To
func unitMultiplied(by unit: HKUnit) -> HKUnit

Declaration
From
func unitRaisedToPower(_ power: Int) -> HKUnit
To
func unitRaised(toPower power: Int) -> HKUnit

Declaration
From
class func yardUnit() -> Self
To
class func yard() -> Self

Declaration
From
enum HKUpdateFrequency : Int {
    case Immediate
    case Hourly
    case Daily
    case Weekly
}
To
enum HKUpdateFrequency : Int {
    case immediate
    case hourly
    case daily
    case weekly
}

Declaration
From
case Daily
To
case daily

Declaration
From
case Hourly
To
case hourly

Declaration
From
case Immediate
To
case immediate

Declaration
From
case Weekly
To
case weekly

Modified HKWorkout
Declaration
From
class HKWorkout : HKSample {
    var workoutActivityType: HKWorkoutActivityType { get }
    var workoutEvents: [HKWorkoutEvent]? { get }
    var duration: NSTimeInterval { get }
    var totalEnergyBurned: HKQuantity? { get }
    var totalDistance: HKQuantity? { get }
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate)
    class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?)
    class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
    class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?)
    class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
    class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
}
To
class HKWorkout : HKSample {
    var workoutActivityType: HKWorkoutActivityType { get }
    var workoutEvents: [HKWorkoutEvent]? { get }
    var duration: TimeInterval { get }
    var totalEnergyBurned: HKQuantity? { get }
    var totalDistance: HKQuantity? { get }
    var totalSwimmingStrokeCount: HKQuantity? { get }
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date)
    class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?)
    class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?)
    class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?)
    class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?)
    class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
    convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?)
    class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
}

Declaration
From
var duration: NSTimeInterval { get }
To
var duration: TimeInterval { get }

Declaration
From
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate)
To
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date)

Declaration
From
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
To
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?)

Declaration
From
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?)
To
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?)

Declaration
From
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
To
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?)

Declaration
From
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?)
To
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?)

Declaration
From
enum HKWorkoutActivityType : UInt {
    case AmericanFootball
    case Archery
    case AustralianFootball
    case Badminton
    case Baseball
    case Basketball
    case Bowling
    case Boxing
    case Climbing
    case Cricket
    case CrossTraining
    case Curling
    case Cycling
    case Dance
    case DanceInspiredTraining
    case Elliptical
    case EquestrianSports
    case Fencing
    case Fishing
    case FunctionalStrengthTraining
    case Golf
    case Gymnastics
    case Handball
    case Hiking
    case Hockey
    case Hunting
    case Lacrosse
    case MartialArts
    case MindAndBody
    case MixedMetabolicCardioTraining
    case PaddleSports
    case Play
    case PreparationAndRecovery
    case Racquetball
    case Rowing
    case Rugby
    case Running
    case Sailing
    case SkatingSports
    case SnowSports
    case Soccer
    case Softball
    case Squash
    case StairClimbing
    case SurfingSports
    case Swimming
    case TableTennis
    case Tennis
    case TrackAndField
    case TraditionalStrengthTraining
    case Volleyball
    case Walking
    case WaterFitness
    case WaterPolo
    case WaterSports
    case Wrestling
    case Yoga
    case Other
}
To
enum HKWorkoutActivityType : UInt {
    case americanFootball
    case archery
    case australianFootball
    case badminton
    case baseball
    case basketball
    case bowling
    case boxing
    case climbing
    case cricket
    case crossTraining
    case curling
    case cycling
    case dance
    case danceInspiredTraining
    case elliptical
    case equestrianSports
    case fencing
    case fishing
    case functionalStrengthTraining
    case golf
    case gymnastics
    case handball
    case hiking
    case hockey
    case hunting
    case lacrosse
    case martialArts
    case mindAndBody
    case mixedMetabolicCardioTraining
    case paddleSports
    case play
    case preparationAndRecovery
    case racquetball
    case rowing
    case rugby
    case running
    case sailing
    case skatingSports
    case snowSports
    case soccer
    case softball
    case squash
    case stairClimbing
    case surfingSports
    case swimming
    case tableTennis
    case tennis
    case trackAndField
    case traditionalStrengthTraining
    case volleyball
    case walking
    case waterFitness
    case waterPolo
    case waterSports
    case wrestling
    case yoga
    case barre
    case coreTraining
    case crossCountrySkiing
    case downhillSkiing
    case flexibility
    case highIntensityIntervalTraining
    case jumpRope
    case kickboxing
    case pilates
    case snowboarding
    case stairs
    case stepTraining
    case wheelchairWalkPace
    case wheelchairRunPace
    case other
}

Declaration
From
case AmericanFootball
To
case americanFootball

Declaration
From
case Archery
To
case archery

Declaration
From
case AustralianFootball
To
case australianFootball

Declaration
From
case Badminton
To
case badminton

Declaration
From
case Baseball
To
case baseball

Declaration
From
case Basketball
To
case basketball

Declaration
From
case Bowling
To
case bowling

Declaration
From
case Boxing
To
case boxing

Declaration
From
case Climbing
To
case climbing

Declaration
From
case Cricket
To
case cricket

Declaration
From
case CrossTraining
To
case crossTraining

Declaration
From
case Curling
To
case curling

Declaration
From
case Cycling
To
case cycling

Declaration
From
case Dance
To
case dance

DeclarationDeprecation
From
case DanceInspiredTraining
--
To
case danceInspiredTraining
iOS 10.0

Declaration
From
case Elliptical
To
case elliptical

Declaration
From
case EquestrianSports
To
case equestrianSports

Declaration
From
case Fencing
To
case fencing

Declaration
From
case Fishing
To
case fishing

Declaration
From
case FunctionalStrengthTraining
To
case functionalStrengthTraining

Declaration
From
case Golf
To
case golf

Declaration
From
case Gymnastics
To
case gymnastics

Declaration
From
case Handball
To
case handball

Declaration
From
case Hiking
To
case hiking

Declaration
From
case Hockey
To
case hockey

Declaration
From
case Hunting
To
case hunting

Declaration
From
case Lacrosse
To
case lacrosse

Declaration
From
case MartialArts
To
case martialArts

Declaration
From
case MindAndBody
To
case mindAndBody

Declaration
From
case MixedMetabolicCardioTraining
To
case mixedMetabolicCardioTraining

Declaration
From
case Other
To
case other

Declaration
From
case PaddleSports
To
case paddleSports

Declaration
From
case Play
To
case play

Declaration
From
case PreparationAndRecovery
To
case preparationAndRecovery

Declaration
From
case Racquetball
To
case racquetball

Declaration
From
case Rowing
To
case rowing

Declaration
From
case Rugby
To
case rugby

Declaration
From
case Running
To
case running

Declaration
From
case Sailing
To
case sailing

Declaration
From
case SkatingSports
To
case skatingSports

Declaration
From
case SnowSports
To
case snowSports

Declaration
From
case Soccer
To
case soccer

Declaration
From
case Softball
To
case softball

Declaration
From
case Squash
To
case squash

Declaration
From
case StairClimbing
To
case stairClimbing

Declaration
From
case SurfingSports
To
case surfingSports

Declaration
From
case Swimming
To
case swimming

Declaration
From
case TableTennis
To
case tableTennis

Declaration
From
case Tennis
To
case tennis

Declaration
From
case TrackAndField
To
case trackAndField

Declaration
From
case TraditionalStrengthTraining
To
case traditionalStrengthTraining

Declaration
From
case Volleyball
To
case volleyball

Declaration
From
case Walking
To
case walking

Declaration
From
case WaterFitness
To
case waterFitness

Declaration
From
case WaterPolo
To
case waterPolo

Declaration
From
case WaterSports
To
case waterSports

Declaration
From
case Wrestling
To
case wrestling

Declaration
From
case Yoga
To
case yoga

DeclarationProtocols
From
class HKWorkoutEvent : NSObject, NSSecureCoding {
    var type: HKWorkoutEventType { get }
    @NSCopying var date: NSDate { get }
    convenience init(type type: HKWorkoutEventType, date date: NSDate)
    class func workoutEventWithType(_ type: HKWorkoutEventType, date date: NSDate) -> Self
    init()
}
NSSecureCoding
To
class HKWorkoutEvent : NSObject, NSSecureCoding, NSCopying {
    var type: HKWorkoutEventType { get }
    var date: Date { get }
    var metadata: [String : Any]? { get }
    convenience init(type type: HKWorkoutEventType, date date: Date)
    class func withType(_ type: HKWorkoutEventType, date date: Date) -> Self
    convenience init(type type: HKWorkoutEventType, date date: Date, metadata metadata: [String : Any])
    class func withType(_ type: HKWorkoutEventType, date date: Date, metadata metadata: [String : Any]) -> Self
    init()
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKWorkoutEvent : CVarArg {
}
extension HKWorkoutEvent : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
@NSCopying var date: NSDate { get }
To
var date: Date { get }

Declaration
From
convenience init(type type: HKWorkoutEventType, date date: NSDate)
To
convenience init(type type: HKWorkoutEventType, date date: Date)

Declaration
From
enum HKWorkoutEventType : Int {
    case Pause
    case Resume
}
To
enum HKWorkoutEventType : Int {
    case pause
    case resume
    case lap
    case marker
    case motionPaused
    case motionResumed
}

Declaration
From
case Pause
To
case pause

Declaration
From
case Resume
To
case resume

NameDeclaration
FromHKUserPreferencesDidChangeNotification
let HKUserPreferencesDidChangeNotification: String
ToHKUserPreferencesDidChange
static let HKUserPreferencesDidChange: NSNotification.Name

Declaration
From
typealias HKObserverQueryCompletionHandler = () -> Void
To
typealias HKObserverQueryCompletionHandler = () -> Swift.Void