<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/OpenExternalURLOptionsKey/universalLinksOnly",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIApplicationOpenURLOptionUniversalLinksOnly"
  },
  "title" : "universalLinksOnly"
}
-->

# universalLinksOnly

URLs must be universal links and have an app configured to open them.

```
static let universalLinksOnly: UIApplication.OpenExternalURLOptionsKey
```

## Discussion

When you include this key in the options dictionary of the [`open(_:options:completionHandler:)`](/documentation/UIKit/UIApplication/open(_:options:completionHandler:)) method, the method opens the URL only if the URL is a valid universal link and there is an installed app capable of opening that URL. The value of this key is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing a Boolean value.

---

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)