---
title: strings
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipasteboard/strings
---

# strings

An array of strings in all pasteboard items.

## Declaration

```swift
var strings: [String]? { get set }
```

## Discussion

Discussion The value stored in this property is an array of NSString objects. The associated array of representation types is typeListString, which includes type kUTTypeUTF8PlainText. Setting this property replaces all current items in the pasteboard with the new items.  The returned array may have fewer objects than the number of pasteboard items; this happens if a pasteboard item does not have a value of the indicated type. note: Do not use this property to determine if a pasteboard contains string data. Instead, use the hasStrings property.

## See Also

### Getting and setting pasteboard items of standard data types

- [string](uikit/uipasteboard/string.md)
- [image](uikit/uipasteboard/image.md)
- [images](uikit/uipasteboard/images.md)
- [url](uikit/uipasteboard/url.md)
- [urls](uikit/uipasteboard/urls.md)
- [color](uikit/uipasteboard/color.md)
- [colors](uikit/uipasteboard/colors.md)
