We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3adfa01 commit 2888a61Copy full SHA for 2888a61
Sources/OpenSwiftUI/View/Control/Link/OpenURLActionKey.swift
@@ -8,7 +8,7 @@
8
#if canImport(Darwin)
9
#if os(iOS) || os(tvOS)
10
import UIKit
11
-#if os(iOS)
+#if os(iOS) && !targetEnvironment(macCatalyst)
12
private import CoreServices
13
#endif
14
#elseif os(macOS)
@@ -37,7 +37,7 @@ struct OpenSensitiveURLActionKey: EnvironmentKey {
37
38
static let defaultValue = OpenURLAction(
39
handler: .system { url, completion in
40
- #if os(iOS)
+ #if os(iOS) && !targetEnvironment(macCatalyst)
41
let config = _LSOpenConfiguration()
42
config.isSensitive = true
43
let selector = Selector(("_currentOpenApplicationEndpoint"))
0 commit comments