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
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Preface
Index

Configuring our glance controller using templates


Our next step is to set up our glance interface controller to use our newly created GlanceInterfaceController class that will be used to display information related to our chosen product item from the shopping list, which we will use later on to set up Outlets within this class.

Since glances are template-based, which basically means that you don't have full control over their appearance, you will notice that the interface is split into upper and lower layout group sections. Perform the following steps:

  1. Select the Interface.storyboard file from the project navigation window.

  2. Next, select Glance Interface Controller and click on the Show the Identity Inspector button.

  3. Then, from the Class drop-down menu, select the GlanceInterfaceController class that we just created to use as our main class:

  4. Next, click on the Upper layout group and select the Image template highlighted by the A icon reference.

  5. Next, click on the Lower layout group and choose...