---
title: UIWindowSceneDragInteraction
framework: uikit
role: symbol
role_heading: Class
path: uikit/uiwindowscenedraginteraction
---

# UIWindowSceneDragInteraction

An interaction you add to a view that enables pan gestures to change the containing window scene’s position.

## Declaration

```swift
@MainActor class UIWindowSceneDragInteraction
```

## Overview

Overview Create and add this interaction to a view that you want to drag to adjust the position of your app’s window. UINavigationBar handles this automatically, so you only need to add this interaction to views in other parts of your window that you want to be draggable.

## Topics

### Preventing gesture conflicts

- [gestureForFailureRelationships](uikit/uiwindowscenedraginteraction/gestureforfailurerelationships.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [UIInteraction](uikit/uiinteraction.md)

## See Also

### Supporting types

- [UIWindowScene.ActivationAction](uikit/uiwindowscene/activationaction.md)
- [UIWindowScene.ActivationConfiguration](uikit/uiwindowscene/activationconfiguration.md)
- [UIWindowScene.ActivationInteraction](uikit/uiwindowscene/activationinteraction.md)
- [UIWindowScene.ActivationRequestOptions](uikit/uiwindowscene/activationrequestoptions.md)
- [UIWindowSceneDestructionRequestOptions](uikit/uiwindowscenedestructionrequestoptions.md)
- [UIWindowScene.DismissalAnimation](uikit/uiwindowscene/dismissalanimation.md)
- [UIWindowScene.ResizingRestrictions](uikit/uiwindowscene/resizingrestrictions.md)
- [UIWindowSceneResizingRestrictions](uikit/uiwindowsceneresizingrestrictions.md)
- [UIWindowScene.PresentationStyle](uikit/uiwindowscene/presentationstyle.md)
