Enumeration

UIForceTouchCapability

Keys that indicate the availability of 3D Touch on a device.

Declaration

enum UIForceTouchCapability : Int

Overview

Only certain devices support 3D Touch. On those that do, the user can disable 3D Touch in the Accessibility area in Settings.

Topics

Availability Options

case unknown

The availability of 3D Touch is unknown.

case available

3D Touch is available on the device.

case unavailable

3D Touch is not available on the device.

See Also

Retrieving the Force Touch Capability Traits

var forceTouchCapability: UIForceTouchCapability

The force touch capability value of the trait collection.