Book Image

Swift Essentials - Second Edition

By : Alex Blewitt
Book Image

Swift Essentials - Second Edition

By: Alex Blewitt

Overview of this book

Swift was considered one of the biggest innovations last year, and certainly with Swift 2 announced at WWDC in 2015, this segment of the developer space will continue to be hot and dominating. This is a fast-paced guide to provide an overview of Swift programming and then walks you through in detail how to write iOS applications. Progress through chapters on custom views, networking, parsing and build a complete application as a Git repository, all by using Swift as the core language
Table of Contents (17 chapters)
Swift Essentials Second Edition
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 8. Adding Watch Support

Apple released watchOS to the public with the release of the Apple Watch in April 2015. However, with the release of watchOS 2 in September 2015, developers have been able to write extensions that run on the watch itself rather than relying on a companion iOS device being available. This chapter will show how to add watch support to the existing Repository Browser application (created in Chapter 7, Building a Repository Browser.)

This chapter will present the following topics:

  • Adding a watch extension to an existing project

  • The type of watch interfaces

  • Using tables, text, and images

  • How to transition between screens with selected context

  • Best practices for watch applications