I am running a Healthkit query.
I can get the value but how do I access the uuid??? I want to access "90A68DE6-A0E1-473B-944B-1132F447C57D".
How do I get this???
results:
I can get the value but how do I access the uuid??? I want to access "90A68DE6-A0E1-473B-944B-1132F447C57D".
How do I get this???
results:
Code Block ([6 mg/dL 90A68DE6-A0E1-473B-944B-1132F447C57D "Health" (14.2), "iPhone12,1" (14.2)metadata: { HKWasUserEntered = 1; } (2021-02-22 09:12:00 +0800 - 2021-02-22 09:12:00 +0800)
Code Block let query = HKSampleQuery(sampleType: glucoseType!, predicate: predicate, limit: 20, sortDescriptors: nil) { (query, results, error) in for result in results as! [HKQuantitySample] { let bloodGlucose = result.quantity.description // this gives the value "6mg/dL" }