Book Image

Apple Watch App Development

By : Steven F. Daniel
Book Image

Apple Watch App Development

By: Steven F. Daniel

Overview of this book

With the increasing amount of new wearable devices hitting the market, wearables are the next wave of mobile technology. With the release of Apple's WatchKit SDK, a whole new world of exciting development possibilities hasopened up. Apple Watch App Development introduces you to the architecture and limitations of the Apple Watch platform, followed by an in-depth look at how to work with Xcode playgrounds. Here, we'll introduce you to the Swift programming language so you can quickly begin developing apps for the Apple Watch platform with the WatchKit framework and the Xcode Development IDE. We then discuss more advanced topics such as Notifiations, Glances, Closures, Tuples, Protocols, Apple pay, and using Swift playgrounds, with each concept backed up with example code that demonstrates how to properly execute it. We also show you how to package and deploy your Watch application to the Apple AppStore. By the end of this book, you will have a good understanding of how to develop apps for Apple Watch platform using the WatchKit framework and Swift 2.0.
Table of Contents (19 chapters)
Apple Watch App Development
About the Author
About the Reviewer

Chapter 8. Incorporating the Glance Interface in Your App

Glances were first introduced in WatchKit 1.0 and are basically a way in which your users can view important information from within your app. A glance is a means of providing relevant information immediately in a timely manner.

Glances are basically an extension of your Apple Watch app that can present information to the user without the need of launching your Apple Watch app and are basically the equivalent of the Today extension in iOS.

Since glances inherit from the WKInterfaceController class, they don't require you to include any delegate callbacks within your code, so you can easily create these using Interface Builder and then connect each of the Interface Builder objects to their respective Outlets.

In this chapter, we will begin by providing an overview of WatchKit glances and their life cycle before working through an application that builds upon our Shopping List application, which we built in the previous chapter, involving...