Documentation Archive Developer
Search

HealthKit Changes

HealthKit

Added HKBiologicalSex.Other
Added HKHealthStore.preferredUnitsForQuantityTypes(NSSet!, completion:(([NSObject: AnyObject]!, NSError!) -> Void)!)
Added HKWorkoutActivityType.Other
Added HKUserPreferencesDidChangeNotification
Modified HKBiologicalSex [enum]
Declaration
From
enum HKBiologicalSex : Int {
    case NotSet
    case Female
    case Male
}
To
enum HKBiologicalSex : Int {
    case NotSet
    case Female
    case Male
    case Other
}

Modified HKUnit
Protocols
FromAnyObject, NSCoding, NSSecureCoding
ToAnyObject, NSCoding, NSCopying, NSSecureCoding

Modified HKWorkoutActivityType [enum]
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
}
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 Other
}