<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/ImageAnalysisInteraction/preferredInteractionTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit24ImageAnalysisInteractionC09preferredE5TypesAC0eG0Vvp"
  },
  "title" : "preferredInteractionTypes"
}
-->

# preferredInteractionTypes

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

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

## Discussion

You need to set this property to enable interactions with the image. If
this property contains
[`automatic`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/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
<doc://com.apple.documentation/documentation/UIKit/UIView/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`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/automatic).

If you set this property to an empty array, the image analysis
interaction doesn’t reset the view’s `isUserInteractionEnabled` property
to `false`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)