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

# didMove(to:)

Tells the interaction that a view added or removed it from the view’s interactions array.

## Declaration

```swift
func didMove(to view: UIView?)
```

## Parameters

- `view`: The view that owns and contains the interaction in its interaction array. If the view is nil, the interaction’s owner removed the interaction from its interactions array.

## See Also

### Tracking the Movements

- [willMove(to:)](uikit/uiinteraction/willmove(to:).md)
