---
title: forceTouchCapability
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitraitcollection/forcetouchcapability
---

# forceTouchCapability

The force touch capability value of the trait collection.

## Declaration

```swift
var forceTouchCapability: UIForceTouchCapability { get }
```

## Mentioned in

Checking the availability of 3D Touch

## Discussion

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

- [UIForceTouchCapability](uikit/uiforcetouchcapability.md)
