---
title: allowLongPressForDataDetectorsInTextMode
framework: visionkit
role: symbol
role_heading: Instance Property
path: visionkit/imageanalysisinteraction/allowlongpressfordatadetectorsintextmode
---

# allowLongPressForDataDetectorsInTextMode

A Boolean value that indicates whether people can press and hold text to activate data detectors.

## Declaration

```swift
@MainActor final var allowLongPressForDataDetectorsInTextMode: Bool { get set }
```

## Mentioned in

Enabling Live Text interactions with images

## Discussion

Discussion If you set this property to true when the interaction type is just text, people can press and hold data in text, even when data detectors aren’t active. Otherwise, people can perform only text actions, such as copy and translate. The default value for this property is true.

## See Also

### Customizing the interface

- [setSupplementaryInterfaceHidden(_:animated:)](visionkit/imageanalysisinteraction/setsupplementaryinterfacehidden(_:animated:).md)
- [supplementaryInterfaceContentInsets](visionkit/imageanalysisinteraction/supplementaryinterfacecontentinsets.md)
- [supplementaryInterfaceFont](visionkit/imageanalysisinteraction/supplementaryinterfacefont.md)
