Chapter 28
Adopting Haptic Touch
As your first app, the FoodPin app is pretty good. That said, if you want to make it even better and adopt some modern technologies provided by the iOS devices, I have two more chapters for you.
Since the release of the iPhone 6s and 6s Plus, Apple introduced us an entirely new way to interact with our phones known as 3D Touch. It literally adds a new dimension to the user interface and offers a new kind of user experience. Not only can it sense your touch, iPhone can now sense how much pressure you apply to the display.
Since the release of iPhone 11, 11 Pro, and 11 Pro Max, Apple was replacing 3D Touch with Haptic Touch across its entire iPhone lineup. Haptic Touch is pretty similar to 3D Touch. While 3D Touch supports force touch, Haptic Touch is a touch and hold gesture.
In the home screen, have you tried to press an app icon a little harder? When you did that, it shows a set of quick actions, each of which allows you to jump straight to a particular part of an app. This is a sample usage of Haptic Touch, known as Quick Actions.

In this chapter, I will go through with you how to implement quick actions in SwiftUI projects and create your custom URL type for handling these quick actions:
- New Restaurant - go to the New Restaurant screen directly
- Discover restaurants - jump right into the Discover tab
- Show Favorites - jump right into the Favorites tab
To access the full version of the book, please get the full copy here. You will also be able to access the full source code of the project.