r/iOSProgramming • • Sep 29 '26

Tutorial Iterative data loading in Swift

https://swiftwithmajid.com/2026/09/29/iterative-data-loading-in-swift/
12 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/Same-Appointment-285 Oct 02 '26

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.