One Logo Pool Ball
SwiftUI · IOS API REFERENCE

DropSession.LocalSession

struct · iOS 26.0+ · SDK 27.1

struct LocalSession

Describes the session originated within the app.

Members (1)

method · iOS 26.0+

draggedItemIDs

TypeScript
draggedItemIDs(type: "Bool" | "Int" | "UInt" | "Double" | "Float" | "String" | "CGFloat" | "Date" | "URL" | "Data" | "UUID"): Array<unknown>
Swift declaration
func draggedItemIDs<ItemID>(for type: ItemID.Type) -> [ItemID] where ItemID : Hashable

Provides an array of identifiers of the currently dragged items if available. If drag started within the application, the dragged items have identifiers, and SwiftUI has access to these identifiers, you can access them using this method. Parameter type: The type of the identifiers. Returns: The array with the identifiers of the dragged items if provided. Returns an empty array if there are no dragged identifiers of a given type.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →