This year, Apple finally brought some long-awaited features into the Core Motion framework. It’s especially exciting that the same capabilities, or some version of them, is also available on the Apple Watch. This is great news for us developers because we can program for the watch in a more native way, rather than reading this data from the user’s iPhone and sending it to the watch with Bluetooth.
There are a couple key terms I’ll be using throughout this chapter that you need to know about:
iOS devices can provide pace and cadence information when it’s available from the pedometer. Some pedometers might not have this information available. You can call the
isPaceAvailable() class function of
CMPedometer to find out whether pace information is available. Similarly, the
isCadenceAvailable() class method of
CMPedometer can tell ...