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 same time, to do so, you will be using one of the newest and most moderns UI frameworks developed by Apple, SwiftUI.
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
Create your first Apple Watch application and learn how SwiftUI now integrates seamlessly between all your apps. No need to learn specific watchOS code.
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.
Learn how to use the scrolling digital crown in your WatchOS application and implement it by building the classic Pong video game.
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.
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.
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.
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.
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.
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.
Learn how to create complications using SwiftUI.
Learn how you can easily share your own custom Watch Faces through your iOS device or via web.
Learn how to use Sign in with Apple to allow simple and straight-forward registration and authentication.
Implement HealthKit in your WatchOS app to track health-related information and take advantage of Apple Health capabilities.