O'Reilly logo

Building Apple Watch Projects by Stuart Grimshaw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the project

Set up a new project using the iOS App with WatchKit App template that we have used before, but this time include the Glance Scene (and deselect Notification Scene as previously), as pictured here:

Setting up the project

Requirements

Using the flow diagram to provide some (very welcome) visual support, we can now start to think about our requirements in more concrete terms.

Weather data structure

Since we'll be passing a number of weather summaries to the table view that displays the initial view of the data, it makes sense to be able to package the data necessary for each individual summary into some sort of structure.

Create a new Swift file, call ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required