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

# hasURLs

A Boolean value that indicates whether the pasteboard contains a nonempty array of URLs.

## Declaration

```swift
var hasURLs: Bool { get }
```

## Discussion

Discussion Employ this property to determine if a pasteboard contains URL data. Do not use the url or urls properties to determine whether a pasteboard contains URL data, because doing so consumes resources needlessly.

## See Also

### Checking for data types on a pasteboard

- [hasColors](uikit/uipasteboard/hascolors.md)
- [hasImages](uikit/uipasteboard/hasimages.md)
- [hasStrings](uikit/uipasteboard/hasstrings.md)
