iOS & Swift Requires a pro subscription Pro

watchOS With SwiftUI by Tutorials

Learn how to build amazing apps with SwiftUI for your Apple Watch. By Scott Grosch.

Read for Free with the Pro subscription* * Includes this and all other books in our online library See all benefits
Buy Individually $59.99* *Includes access to all of our online reading features.
Login to leave a rating/review
Download materials
Buy paperback—Amazon Comments
Save for later
Share

Who is this for?

This book is for beginner and intermediate developers who wish to know how to develop watchOS apps in a declarative and modern way by implementing SwiftUI.

Covered concepts

  • watchOS app project structure
  • How to use the Digital Crown in your apps
  • Watch Connectivity
  • Why your app should implement Snapshots
  • Notifications
  • Understand the watchOS app Lifecycle
  • All you need to know about Complications
  • Watch Face sharing
  • Signing in with Apple Watch
  • HealthKit
Build amazing apps with SwiftUI for Apple Watch

The Apple Watch is, by far, the most common smart watch in the market. Its sales have even surpased those of its analog competitors. With this book you will learn how to develop native watchOS applications for this popular device. And at the...

more

Before You Begin

This section tells you a few things you need to know before you get started, such as what you’ll need for hardware and software, where to find the project files for this book, and more.

Section I: watchOS With SwiftUI

1
Hide description
Create your first Apple Watch application and learn how SwiftUI now integrates seamlessly between all your apps. No need to learn specific watchOS code.
2
Hide description
Apple Watch apps have a slightly different project structure compared to iOS. In this chapter you will learn those differences, so you can create a standalone WatchOS app, or an iPhone companion app.
3
Hide description
Learn how to use the scrolling digital crown in your WatchOS application and implement it by building the classic Pong video game.
4
Hide description
In this chapter, learn about the Watch Connectivity framework and the different ways you can transfer data between iOS and watchOS apps and how to successfully implement it.
Hide description
Snapshots provide a way for users to quickly view the state of an app. Great apps should always show updated information in their snapshots. So in this chapter you will learn how to make sure it shows the latest and most useful information to the user.
Hide description
watchOS offers support for several different types of notifications and allows you to customize them to the individual needs of your watch app. In this chapter, you'll get a complete overview.
Hide description
Find out about the Apple Watch Lifecycles and how it transitions between states while building a useful app to explain how to extend current runtime sessions.
A quick introduction to what a complication is, including graphics showing the location of each type.
Hide description
Complications are small elements that appear on the user's selected watch face and provide quick access to frequently used data from within your app. This chapter will walk you through the process of setting up your first complication, along with introducing each of the complication families and their corresponding layout templates.
Use background tasks and background URL downloads to keep your complications up to date.
Hide description
The Apple Watch allows users to select a specific tint color for the watch face. In this chapter you will learn how to prepare your complications for great results by applying multi-layered images, SwiftUI graphic views or conditional rendering modes.
Hide description
Learn how to create complications using SwiftUI.
Hide description
Learn how you can easily share your own custom Watch Faces through your iOS device or via web.
Hide description
Learn how to use Sign in with Apple to allow simple and straight-forward registration and authentication.
Hide description
Implement HealthKit in your WatchOS app to track health-related information and take advantage of Apple Health capabilities.