swiftapple-watchwatchoswatchos-4

How to determine a 90 degree turn on Apple Watch?


I have the following case to determine the user's turn 90 degrees or more with only using Apple Watch.

I wanted to do this with CLLocationManager and startUpdatingHeading, but Heading does not support watchOS. At the moment I'm at a dead end, and I do not know the solutions to this problem. Are there any disputes to solve this problem?


Solution

  • Review the CLLocation portion that supplies Course. This is available on Watch. The Heading information is derived from the internal phone compass and I’m not sure that is currently supported on the Watch. (Docs don’t show it is.)