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.
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.
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.
Learn how to use the scrolling digital crown in your WatchOS application and how to build and implement the classic Pong video game.
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.
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.
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.
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.
A brief introduction to what the complications are, including graphics showing the location of each type.
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.
Use background tasks and background URL downloads to keep your complications up to date.
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.
Learn how to create complications using SwiftUI.
Learn how to easily share your own watch face via your iOS device or the web.
Learn how to use Sign In with Apple to allow simple and intuitive registration and authentication.
Implement HealthKit in your WatchOS app to track health-related information and take advantage of Apple Health features.