<!--
{
  "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/InteractionTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit24ImageAnalysisInteractionC0E5TypesV"
  },
  "title" : "ImageAnalysisInteraction.InteractionTypes"
}
-->

# ImageAnalysisInteraction.InteractionTypes

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

```
struct InteractionTypes
```

## Topics

### Specifying types of interactions

[`static let automatic: ImageAnalysisInteraction.InteractionTypes`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/automatic)

An option that enables interaction with any type of text, symbols, or subjects that the framework recognizes.

[`static let textSelection: ImageAnalysisInteraction.InteractionTypes`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/textSelection)

An option that enables text selection, copying, and translating.

[`static let dataDetectors: ImageAnalysisInteraction.InteractionTypes`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/dataDetectors)

An option that enables interaction with text of certain formats,
such as URLs, email addresses, and physical addresses.

[`static let imageSubject: ImageAnalysisInteraction.InteractionTypes`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/imageSubject)

An option that enables people to use a long-press gesture on a subject in an image to separate it from the background.

[`static let visualLookUp: ImageAnalysisInteraction.InteractionTypes`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/visualLookUp)

An option that presents a button for more information on any subjects the framework recognizes in the image.

[`static let automaticTextOnly: ImageAnalysisInteraction.InteractionTypes`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/automaticTextOnly)

An option that enables all interaction types except image subjects and Visual Look Up.

### Creating an interaction

[`init(rawValue: UInt)`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/init(rawValue:))

Creates an instance from a raw type.

[`var rawValue: UInt`](/documentation/VisionKit/ImageAnalysisInteraction/InteractionTypes/rawValue)

The corresponding value of the raw type.

### Managing sets

[Set properties and methods](/documentation/VisionKit/interactiontypes-set-properties-and-methods)

The properties and methods that conform to the option set protocol.

## Relationships

### Conforms To

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`OptionSet`](/documentation/Swift/OptionSet)

[`Equatable`](/documentation/Swift/Equatable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)