Skip to content

Commit 2888a61

Browse files
committed
Fix Mac Catalyst build issue
1 parent 3adfa01 commit 2888a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/OpenSwiftUI/View/Control/Link/OpenURLActionKey.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#if canImport(Darwin)
99
#if os(iOS) || os(tvOS)
1010
import UIKit
11-
#if os(iOS)
11+
#if os(iOS) && !targetEnvironment(macCatalyst)
1212
private import CoreServices
1313
#endif
1414
#elseif os(macOS)
@@ -37,7 +37,7 @@ struct OpenSensitiveURLActionKey: EnvironmentKey {
3737

3838
static let defaultValue = OpenURLAction(
3939
handler: .system { url, completion in
40-
#if os(iOS)
40+
#if os(iOS) && !targetEnvironment(macCatalyst)
4141
let config = _LSOpenConfiguration()
4242
config.isSensitive = true
4343
let selector = Selector(("_currentOpenApplicationEndpoint"))

0 commit comments

Comments
 (0)