iOS & Swift

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 Personal Plan* * 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.
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
Toggle 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.
Toggle 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.
Toggle description
Learn how to use the scrolling digital crown in your WatchOS application and implement it by building the classic Pong video game.
Toggle 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.
Toggle 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.
Toggle 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.
Toggle 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.
Toggle description
Complications are small elements that appear on a watch face and provide quick access to frequently used data from your app. This chapter will walk you through setting up your first complication, along with introducing each of the complication families and their corresponding layout templates.
Toggle description
Use background tasks and background URL downloads to keep your complications up to date.
Toggle description
Learn how you can easily share your own custom Watch Faces through your iOS device or via web.
Toggle description
Learn how to use Sign in with Apple to allow simple and straight-forward registration and authentication.
Toggle description
Implement HealthKit in your WatchOS app to track health-related information and take advantage of Apple Health capabilities.