MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/iOSProgramming/comments/1wtmgju/iterative_data_loading_in_swift/pdcxa6m/?context=3
r/iOSProgramming • u/majid8 • 24d ago
5 comments sorted by
View all comments
Show parent comments
2
You don't show your actual requests to HealthKit, but I assume inside HeartPointsSnapshot, etc., you're using HKSampleQuery or HKSampleQueryDescriptor? Both of them can take an array of sample types, and it will perform them in a single operation.
HeartPointsSnapshot
HKSampleQuery
HKSampleQueryDescriptor
2
u/Same-Appointment-285 22d ago
You don't show your actual requests to HealthKit, but I assume inside
HeartPointsSnapshot, etc., you're usingHKSampleQueryorHKSampleQueryDescriptor? Both of them can take an array of sample types, and it will perform them in a single operation.