---
title: preferredInteractionTypes
framework: visionkit
role: symbol
role_heading: Instance Property
path: visionkit/imageanalysisinteraction/preferredinteractiontypes
---

# preferredInteractionTypes

The types of interactions that people can perform with the image.

## Declaration

```swift
@MainActor final var preferredInteractionTypes: ImageAnalysisInteraction.InteractionTypes { get set }
```

## Mentioned in

Enabling Live Text interactions with images

## Discussion

Discussion You need to set this property to enable interactions with the image. If this property contains automatic, the interaction ignores the other types in the set. The default value for this property is an empty array that disables any interactions. If you set this property to one or more types, the interaction sets the view’s isUserInteractionEnabled property to true so that the interaction begins. For example, when you’re ready to start the Live Text interface, set this property to automatic. If you set this property to an empty array, the image analysis interaction doesn’t reset the view’s isUserInteractionEnabled property to false.

## See Also

### Configuring an image interaction

- [delegate](visionkit/imageanalysisinteraction/delegate.md)
- [analysis](visionkit/imageanalysisinteraction/analysis.md)
- [view](visionkit/imageanalysisinteraction/view.md)
- [ImageAnalysisInteraction.InteractionTypes](visionkit/imageanalysisinteraction/interactiontypes.md)
- [activeInteractionTypes](visionkit/imageanalysisinteraction/activeinteractiontypes.md)
