Reputation: 51
Does anyone know how to use HKWorkoutRouteQuery on iOS 11? For some reason the constructor found here HKWorkoutRouteQuery does not appear to be available.
I can however use it in a WatchOS application/extension.
I'm using the example code from the WWDC 2017 presentation found here.
Anyone have success with this? Thanks.
Upvotes: 1
Views: 443
Reputation: 51
I found the solution, I needed to include MapKit. Which seems to make sense because the constructor includes a CLLocation.
Upvotes: 4