Getting yesterdays steps from HealthKit
问题 I'm building an app for personal use, and I am currently stuck on how to accurately get yesterdays steps from the healthkit. And then from there, placing it into a variable (should be easy, I know). I have a HealthKitManager class that calls the function from inside a view, and then appends that to a variable from that same view. I have scoured most of the healthKit questions, and I get back data, but I don't think it is accurate data. My phone data from yesterday is 1442 steps, but it's