Build amazing apps with SwiftUI for Apple Watch
Apple Watch is by far the most common smart watch on the market. Sales have even outperformed analog rivals. In this book, you will learn how to develop basic watchOS applications for this popular device. At the same time, you will be using SwiftUI, one of the newest and most up-to-date UI frameworks developed by Apple for this purpose.
before start
This section tells you a few things you need to know before you start, such as what you will need for your hardware and software, and where to find the project files for this book.
Section I: watchOS with SwiftUI
Create your first Apple Watch application and learn how SwiftUI now integrates seamlessly across all your apps. You don’t need to learn any specific watchOS code.
One
The Apple Watch app has a slightly different project structure than iOS. In this chapter, you will learn these differences so that you can create a standalone WatchOS app or an iPhone companion app.
2
Learn how to use the scrolling digital crown in your WatchOS application and how to build and implement the classic Pong video game.
three
In this chapter, you will learn about the Watch Connectivity framework and the different ways you can transfer data between iOS and watchOS apps, and how to successfully implement them.
4
Snapshots provide a quick way for users to see the state of your app. A great app should always show updated information in a snapshot. So, in this chapter, you will learn how to present the most useful and up-to-date information to users.
5
watchOS supports several types of notifications and can be customized to the individual requirements of the watch app. You can get a complete overview in this chapter.
6
Learn about the Apple Watch lifecycle and how to transition between states while building useful apps that demonstrate how to extend the current runtime session.
7
A brief introduction to what the complications are, including graphics showing the location of each type.
8
Complications are small elements that appear on the watch face of the user’s choice and provide quick access to frequently used data within the app. This chapter guides you through the process of setting up your first info display, introducing each info display suite and its layout templates.
9
Use background tasks and background URL downloads to keep your complications up to date.
10
Apple Watch allows users to select a specific tint color for the watch face. In this chapter, you will learn how to apply multi-layer images, SwiftUI graphical views, or conditional rendering modes to prepare complications for great results.
11
Learn how to create complications using SwiftUI.
12
Learn how to easily share your own watch face via your iOS device or the web.
13
Learn how to use Sign In with Apple to allow simple and intuitive registration and authentication.
14
Implement HealthKit in your WatchOS app to track health-related information and take advantage of Apple Health features.
15