One Logo Pool Ball
SwiftUI · IOS API REFERENCE

DropOperation.Set

struct · iOS 26.0+ · SDK 27.1

struct Set

A set of drop operations, corresponding to matching cases in `DropOperation`.

Members (7)

get · iOS 26.0+

description

TypeScript
getDescription($self: DropOperation_Set): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

get · iOS 26.0+

copy

TypeScript
get copy(): DropOperation_Set
Swift declaration
static let copy: DropOperation.Set

Copy the data to the modified view.

get · iOS 26.0+

move

TypeScript
get move(): DropOperation_Set
Swift declaration
static let move: DropOperation.Set

Move the data represented by the drag items instead of copying it.

get · iOS 26.0+

cancel

TypeScript
get cancel(): DropOperation_Set
Swift declaration
static let cancel: DropOperation.Set

Cancel the operation.

init · iOS 26.0+

init

TypeScript
init(rawValue: number): DropOperation_Set
Swift declaration
init(rawValue: Int)

Creates a set of drop operations using the provided raw value.

get · iOS 26.0+

rawValue

TypeScript
getRawValue($self: DropOperation_Set): number
Swift declaration
let rawValue: Int

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

get · iOS 26.0+

forbidden

TypeScript
get forbidden(): DropOperation_Set
Swift declaration
static let forbidden: DropOperation.Set

The operation is forbidden.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →