Build a productivity app for Apple Watch

RSS for tag

Discuss the WWDC22 Session Build a productivity app for Apple Watch

Posts under wwdc2022-10133 tag

2 Posts
Sort by:
Post not yet marked as solved
1 Replies
136 Views
let stagePredicate = HKCategoryValueSleepAnalysis.predicateForSamples(.equalTo,value: .asleepREM)         let queryPredicate = HKSamplePredicate.sample(type: HKCategoryType(.sleepAnalysis), predicate: stagePredicate)         let sleepQuery = HKSampleQueryDescriptor(predicates: [queryPredicate], sortDescriptors: [])         do{             let sleepSample = try await sleepQuery.result(for: store)                          print("sleep sample ")             print(sleepSample) with health app on iOS , it says I did rem sleep for 59 minutes. but all sum of sleep sample time is not 59 but 3.7hours. time is also not accurate. sleepSample log is as below what may be the problem?
Posted
by kotran.
Last updated
.
Post not yet marked as solved
1 Replies
134 Views
Hello, I enjoyed the talk very very much. It's one of those talks where it would be useful to have the sample project and play around with it. Is there any consideration for the sample project to be added?
Posted Last updated
.