Adding Detail to a Screen

The Go Running screen in your TapALap app is pretty bare at the moment—just a green button. There’s more information you want to display on this screen: the track on which the user is about to run (with the ability to edit it) as well as some stats about the runner’s overall performance. Let’s do the performance stats first.

Using Groups for Advanced Layout

Your users will want to know how many runs they’ve been on and their average pace. To that end, let’s add one group for each of those topics to the interface controller. Drag out a new group and add two labels to it. This will be the group for the number of times the user has run using your app. Change the text of the first label to a number—I use 5 in my example—so ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.