<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIInteraction",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIInteraction"
  },
  "title" : "UIInteraction"
}
-->

# UIInteraction

The protocol that an interaction implements to access the view that owns it.

```
@MainActor protocol UIInteraction : NSObjectProtocol
```

## Topics

### Getting the View

[`view`](/documentation/UIKit/UIInteraction/view)

The view that owns the interaction.

### Tracking the Movements

[`-  didMoveToView:`](/documentation/UIKit/UIInteraction/didMove(to:))

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

[`-  willMoveToView:`](/documentation/UIKit/UIInteraction/willMove(to:))

Tells the interaction that a view will add or remove it from the view’s interactions array.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Conforming Types

[`UIWritingToolsCoordinator`](/documentation/UIKit/UIWritingToolsCoordinator)

[`UIWindowSceneDragInteraction`](/documentation/UIKit/UIWindowSceneDragInteraction)

[`UITextInteraction`](/documentation/UIKit/UITextInteraction)

[`UIEditMenuInteraction`](/documentation/UIKit/UIEditMenuInteraction)

[`UISelectionFeedbackGenerator`](/documentation/UIKit/UISelectionFeedbackGenerator)

[`UIIndirectScribbleInteraction-1nfjm`](/documentation/UIKit/UIIndirectScribbleInteraction-1nfjm)

[`UIContextMenuInteraction`](/documentation/UIKit/UIContextMenuInteraction)

[`UIPencilInteraction`](/documentation/UIKit/UIPencilInteraction)

[`UIImpactFeedbackGenerator`](/documentation/UIKit/UIImpactFeedbackGenerator)

[`UIDropInteraction`](/documentation/UIKit/UIDropInteraction)

[`UIScrollEdgeElementContainerInteraction`](/documentation/UIKit/UIScrollEdgeElementContainerInteraction)

[`UIFindInteraction`](/documentation/UIKit/UIFindInteraction)

[`UIFeedbackGenerator`](/documentation/UIKit/UIFeedbackGenerator)

[`UIBandSelectionInteraction`](/documentation/UIKit/UIBandSelectionInteraction)

[`UICanvasFeedbackGenerator`](/documentation/UIKit/UICanvasFeedbackGenerator)

[`UIPointerInteraction`](/documentation/UIKit/UIPointerInteraction)

[`UIDragInteraction`](/documentation/UIKit/UIDragInteraction)

[`ActivationInteraction`](/documentation/UIKit/UIWindowScene/ActivationInteraction)

[`UINotificationFeedbackGenerator`](/documentation/UIKit/UINotificationFeedbackGenerator)

[`UITextSelectionDisplayInteraction`](/documentation/UIKit/UITextSelectionDisplayInteraction)

[`UISpringLoadedInteraction`](/documentation/UIKit/UISpringLoadedInteraction)

[`UIToolTipInteraction`](/documentation/UIKit/UIToolTipInteraction)

[`UILookToScrollInteraction`](/documentation/UIKit/UILookToScrollInteraction)

[`UIScribbleInteraction`](/documentation/UIKit/UIScribbleInteraction)

[`UILargeContentViewerInteraction`](/documentation/UIKit/UILargeContentViewerInteraction)

---

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)