Preparing for WatchConnectivity: Persisting Data in TapALap

One of the more confusing parts of TapALap is the track selection and configuration process, which makes it an ideal candidate for the iPhone instead. The user should be able to do everything he needs before he runs on the watch, since he might install the app and leave his phone behind—for instance, in a gym locker room—but there are some things you can leave to the user’s iPhone instead: renaming tracks, editing lap distance, or deleting tracks. You’ll use the WatchConnectivity framework to synchronize your track data from watchOS to iOS and use the iPhone app for more advanced editing. Before you can get into WatchConnectivity, you’ll need to add a way to persist track ...

Get Developing for Apple Watch, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.