---
title: localObject
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidragitem/localobject
---

# localObject

A custom object associated with the drag item.

## Declaration

```swift
var localObject: Any? { get set }
```

## Mentioned in

Supporting Drag and Drop in Collection Views Supporting drag and drop in table views

## Discussion

Discussion The localObject property gives you the option to associate a custom object, such as a model object, with the drag item. The local object is available only to the app that initiates the drag activity.

## See Also

### Accessing the drag item’s data

- [itemProvider](uikit/uidragitem/itemprovider.md)
