Enumeration

UIForceTouchCapability

Keys that indicate the availability of 3D Touch on a device. Only certain devices support 3D Touch. On those that do, the user can disable 3D Touch in the Accessibility area in Settings.

Declaration

typedef enum UIForceTouchCapability : NSInteger {
    ...
} UIForceTouchCapability;

Topics

Constants

UIForceTouchCapabilityUnknown

The availability of 3D Touch is unknown.

UIForceTouchCapabilityAvailable

3D Touch is available on the device.

UIForceTouchCapabilityUnavailable

3D Touch is not available on the device.

See Also

Retrieving Interface-Related Traits

userInterfaceIdiom

The user interface idiom of the trait collection.

UIUserInterfaceIdiom

The interface type for the device or an object that has a trait environment, such as a view and view controller.

forceTouchCapability

The force touch capability value of the trait collection.

layoutDirection

The layout direction associated with the current environment.

UITraitEnvironmentLayoutDirection

Constants indicating the layout direction associated with the current environment.

userInterfaceStyle

The style associated with the user interface.

UIUserInterfaceStyle

Constants indicating the interface style for the app.