<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/OpenExternalURLOptionsKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIApplicationOpenExternalURLOptionsKey"
  },
  "title" : "UIApplication.OpenExternalURLOptionsKey"
}
-->

# UIApplication.OpenExternalURLOptionsKey

Options for opening a URL.

```
struct OpenExternalURLOptionsKey
```

## Topics

### URL options

[`UIApplicationOpenURLOptionUniversalLinksOnly`](/documentation/UIKit/UIApplication/OpenExternalURLOptionsKey/universalLinksOnly)

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

### Measuring ad taps

[`UIApplicationOpenExternalURLOptionsEventAttributionKey`](/documentation/UIKit/UIApplication/OpenExternalURLOptionsKey/eventAttribution)

An object you use to send tap event attribution data to the browser for Private Click Measurement.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UIApplication/OpenExternalURLOptionsKey/init(rawValue:))

Creates a new instance with the specified raw value.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)