<!--
{
  "documentType" : "article",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/drag-operations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Drag Operations"
}
-->

# Drag Operations

Define drag operations allowed for a view.

## Topics

### Dragging in a View

[`var allowsDragging: Bool`](/documentation/PDFKit/PDFView/allowsDragging)

A Boolean value indicating whether the view can accept new PDF documents dragged into it by the user.

[`var acceptsDraggedFiles: Bool`](/documentation/PDFKit/PDFView/acceptsDraggedFiles)

A Boolean value indicating whether you can drag a file into the view.



---

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)