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

# urls

An array of URL objects in all pasteboard items.

## Declaration

```swift
var urls: [URL]? { get set }
```

## Discussion

Discussion The value stored in this property is an array of NSURL objects. The associated array of representation types is typeListURL, which includes type kUTTypeURL. 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 URL data. Instead, use the hasURLs property.

## See Also

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

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