Contents

draggedItemIDs(for:)

Provides an array of identifiers of the currently dragged items in a case when the items conform to the Identifiable protocol, or identifiers were provided to SwiftUI separately.

Declaration

func draggedItemIDs<ItemID>(for type: ItemID.Type) -> [ItemID] where ItemID : Hashable

Discussion

Parameter type: The type of the identifiers. Returns: The array with the identifiers of the dragged items if provided. Returns an empty array if no dragged identifiers of a given type exist.