<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPasteboard/hasURLs",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPasteboard(py)hasURLs"
  },
  "title" : "hasURLs"
}
-->

# hasURLs

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

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

## Discussion

Employ this property to determine if a pasteboard contains URL data.

Do not use the [`url`](/documentation/UIKit/UIPasteboard/url) or [`urls`](/documentation/UIKit/UIPasteboard/urls) properties to determine whether a pasteboard contains URL data, because doing so consumes resources needlessly.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)