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 10. Image Compression and Animation

When Apple released the original watchOS, the WatchKit platform provided you with a one-way solution to perform your own animations by flipping through each of the image frames. Now, with the release of watchOS 2, this software update provides you with an additional animation API that you can use to animate your images using the animateWithDuration method.

The WatchKit framework provides you with the WKInterfaceImage interface object class that you can add to your WatchKit app storyboard. You should consider using images that are in either the PNG or JPEG formats. Apple suggests that you should avoid using file formats other than PNG or JPEG as they may have an impact on performance when they are rendered to the WatchKit interface, and you need to take into consideration the size of these images, especially when working with large image files.

In this chapter, you will learn how to build a simple application that will showcase how to animate a series...