Chapter 17. Just a Peek

In 2015, when the iPhone 6s and iPhone 6s Plus were announced, Apple also introduced 3D Touch. It uses a taptic engine with haptic feedback, which allows the device to sense the pressure of a touch, thus triggering certain actions. For example, pressing hard on an icon allows us to have a quick action menu.

We will cover the following topics in this chapter:

  • Adding 3D Touch quick actions
  • Understanding the difference between static and dynamic quick actions
  • Adding 3D Touch support inside a Collection View

The first thing we will do for our app is to add quick actions for our app icon.

Adding 3D Touch quick actions

For our app, we are going to add four quick actions (which is the maximum amount that you can have). These actions ...

Get iOS 10 Programming for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.