Open dokumanx opened 2 years ago
let predicate = NSPredicate(format: "metadata.%K != YES", HKMetadataKeyWasUserEntered)
let query = HKStatisticsCollectionQuery(quantityType: quantityType,
quantitySamplePredicate: nil,
quantitySamplePredicate: predicate,
options: options,
anchorDate: anchorDate,
intervalComponents: interval)
Hi folks,
Is there any way to ignore manual entries? Our users should not be able to add entries or we should not count them.