Last active
September 14, 2018 17:38
-
-
Save nderkach/9d792981225db339f522866960af3680 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import HealthKit | |
/// Types of data that this app wishes to read from HealthKit. | |
/// | |
/// - returns: A set of HKObjectType. | |
private func dataTypesToRead() -> Set<HKObjectType> { | |
return Set([ | |
HKObjectType.categoryType(forIdentifier: HKCategoryTypeIdentifier.sleepAnalysis)!, HKObjectType.categoryType(forIdentifier: HKCategoryTypeIdentifier.mindfulSession)! | |
]) | |
} | |
/// Types of data that this app wishes to write to HealthKit. | |
/// | |
/// - returns: A set of HKSampleType. | |
private func dataTypesToWrite() -> Set<HKSampleType> { | |
return Set() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment