forceTouchCapability
The force touch capability value of the trait collection.
Declaration
var forceTouchCapability: UIForceTouchCapability { get }Mentioned in
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.