Tracking the force of 3D Touch events
Manipulate your content based on the force of touches.
Overview
A touch on the screen primarily conveys the location of that touch. However, devices that support 3D Touch also report the amount of force imparted by the user’s finger onto the screen. (Similarly, Apple Pencil reports the amount of force at its tip to the connected device.) You can use both the touch location and the force value as input to your app. For example, a drawing app might use force to set the thickness of the current line.
[Image]
The raw force value associated with a touch is available in the force property of the UITouch object. You can compare that value against the value in the maximumPossibleForce property to determine the relative amount of force.
For guidance about using 3D Touch, see iOS Human Interface Guidelines.