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

Creating the navigation tracking application


In this section, we will take a look at how to design a user interface for our Watch Tracker application. We will begin by developing the WatchKit portion and the iOS app portion of our application.

Before proceeding, we need to create our WatchTracker project; this can be created easily using Xcode. Simply follow the steps listed here:

  1. Launch Xcode from the /Applications folder.

  2. Choose Create a new Xcode project or go to File | New Project:

  3. Select iOS App with WatchKit App from the list of available templates under the watchOS section, as shown in the following screenshot:

  4. Click on the Next button to proceed to the next step in the wizard.

  5. Next, enter WatchTracker as the name of your project.

  6. Select Swift from the Language drop-down menu.

  7. Select iPhone from the Devices drop-down menu.

  8. Ensure that the Include Notification Scene checkbox has been selected.

  9. Click on the Next button to proceed to the next step in the wizard:

    Note

    The Organization Identifier...