Posts

Post not yet marked as solved
1 Replies
371 Views
I've been playing around with Montion Capture in ARKit 3. The motion capture requires an A12 chip or above. Can anyone tell me if the capturing works better on the A13 chipset versus A12? And by working better I don't mean just faster, but actually recognizing more movements/postures. If so I will go a get an iPhone 11.
Posted
by stacconi.
Last updated
.
Post not yet marked as solved
3 Replies
1.8k Views
I'm rewriting my workout app on Apple Watch to use the new HKWorkoutBuilder. Everything appears straight forward but can't seam to be able to access the calories burned in my HKLiveWorkoutBuilderDelegate to update my UI.func workoutBuilder(_ workoutBuilder: HKLiveWorkoutBuilder, didCollectDataOf collectedTypes: Set<HKSampleType>) { let caloriesType = HKQuantityType.quantityType(forIdentifier: .activeEnergyBurned)! if collectedTypes.contains(caloriesType) { if let updatedStatistics = workoutBuilder.statistics(for: caloriesType) { if let quantity = updatedStatistics.mostRecentQuantity() { // Code never gets to here!? } } }}The updateStatistics is valid. It just the updateStatistics.mostRecentQuatity() that doesn't return a value.These are the types my HKLiveWorkoutDataSource is collecting: - 0 : HKQuantityTypeIdentifierHeartRate - 1 : HKQuantityTypeIdentifierActiveEnergyBurned - 2 : HKQuantityTypeIdentifierBasalEnergyBurnedAny ideas!?
Posted
by stacconi.
Last updated
.