Instance Property

forceTouchCapability

The force touch capability value of the trait collection.

Declaration

var forceTouchCapability: UIForceTouchCapability { get }

Discussion

3D Touch is available only on certain devices. On those devices, availability is determined by the user’s associated accessibility setting in the Settings app. Check this property’s value on app launch, and in your implementation of the traitCollectionDidChange(_:) method.

If this property does not contain a value, the meaning is equivalent to the value UIForceTouchCapability.unknown.

See Also

Retrieving the Force Touch Capability Traits

enum UIForceTouchCapability

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