DropOperation
Operation types that determine how a drag and drop session resolves when the user drops a drag item.
Declaration
type DropOperation = 'cancel' | 'copy' | 'forbidden' | 'move';enum DropOperationPass a literal, or build one with SwiftUI.DropOperation from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'cancel'SwiftUI.DropOperation.cancelCancel the drag operation and transfer no data.
'copy'SwiftUI.DropOperation.copyCopy the data to the modified view.
'forbidden'SwiftUI.DropOperation.forbiddenThe drop activity is not allowed at this time or location.
'move'SwiftUI.DropOperation.moveMove the data represented by the drag items instead of copying it.
See also
More in Drag and drop.
- DocumentConfigurationThe configuration of a document in a DocumentGroup.
- DocumentCreationSourceDescribes the source used to create a new document.
- DropConfigurationDescribes the behavior of the drop.
- DropOperationSetA set of drop operations, corresponding to matching cases in DropOperation.
- DropSessionA description of a drop that is in progress.
- DropSessionIDThe identifier of a drag session.
- DropSessionLocalSessionDescribes the session originated within the app.