Skip to content

Instantly share code, notes, and snippets.

@nderkach
Last active September 14, 2018 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nderkach/9d792981225db339f522866960af3680 to your computer and use it in GitHub Desktop.
Save nderkach/9d792981225db339f522866960af3680 to your computer and use it in GitHub Desktop.
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