Contents

UIWindowSceneDragInteraction

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

Declaration

@MainActor class UIWindowSceneDragInteraction

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

See Also

Supporting types