---
title: setDefaultResult()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uitextpasteitem/setdefaultresult()
---

# setDefaultResult()

Sets the text paste item’s value to the default value based on the item provider’s data.

## Declaration

```swift
func setDefaultResult()
```

## Discussion

Discussion You call this method, as a fallback, for any items you don’t handle. Setting the default result when the item provider’s data isn’t supported is the same as calling the setNoResult() method.

## See Also

### Setting a text paste item’s result value

- [setResult(string:)](uikit/uitextpasteitem/setresult(string:).md)
- [setResult(attributedString:)](uikit/uitextpasteitem/setresult(attributedstring:).md)
- [setResult(attachment:)](uikit/uitextpasteitem/setresult(attachment:).md)
- [setNoResult()](uikit/uitextpasteitem/setnoresult().md)
