---
title: allowsCopyingTokens
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchtextfield/allowscopyingtokens
---

# allowsCopyingTokens

A Boolean that indicates whether the user can copy or drag tokens from the search field.

## Declaration

```swift
var allowsCopyingTokens: Bool { get set }
```

## Discussion

Discussion The default value for this property is true. To support copying tokens, allowsCopyingTokens must be true and the search field’s delegate must also implement searchTextField(_:itemProviderForCopying:). UISearchTextField enables the Copy command when a user selects text, even if the selection also includes tokens and allowsCopyingTokens is false.

## See Also

### Supporting token interactions

- [allowsDeletingTokens](uikit/uisearchtextfield/allowsdeletingtokens.md)
- [delegate](uikit/uitextfield/delegate.md)
- [UISearchTextFieldDelegate](uikit/uisearchtextfielddelegate.md)
- [UISearchTextFieldPasteItem](uikit/uisearchtextfieldpasteitem.md)
