Adding a Glance
As you learned earlier,, each watch app can have one Glance to display information to the user right from the watch face. To add one to HelloWatch, open the project in Xcode and open its Interface.storyboard file. In the Object Library in the lower-right (available by pressing ⌃⌥⌘3), find Glance Interface Controller and drag it onto the canvas. You’ll notice two objects already on it, each called Group. We’ll discuss groups more in their own chapter,, but it’s important to note that there are two sections to the Glance, upper and lower. Select the Glance interface controller you dragged out and open the Attributes Inspector in Xcode (⌥⌘4). You can click the object next to Upper and Lower to switch to a different template for ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access