---
title: "didMove(to:)"
framework: visionkit
role: symbol
role_heading: Instance Method
path: "visionkit/imageanalysisinteraction/didmove(to:)"
---

# didMove(to:)

Performs an action after the view adds or removes the interaction from its interaction array.

## Declaration

```swift
@MainActor @preconcurrency final func didMove(to view: UIView?)
```

## Parameters

- `view`: The view that owns and contains the interaction in its interaction array.

## See Also

### Responding to view events

- [willMove(to:)](visionkit/imageanalysisinteraction/willmove(to:).md)
