Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 7fed962

Browse files
committed
Fix compiler issue for Xcode 16
1 parent 08a25e9 commit 7fed962

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

WordPressAuthenticator/Email Client Picker/URLHandler.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22
public protocol URLHandler {
33
/// checks if the specified URL can be opened
44
func canOpenURL(_ url: URL) -> Bool
5+
6+
#if compiler(>=6)
7+
/// opens the specified URL
8+
func open(_ url: URL,
9+
options: [UIApplication.OpenExternalURLOptionsKey: Any],
10+
completionHandler completion: (@MainActor @Sendable (Bool) -> Void)?)
11+
#else
512
/// opens the specified URL
613
func open(_ url: URL,
714
options: [UIApplication.OpenExternalURLOptionsKey: Any],
815
completionHandler completion: ((Bool) -> Void)?)
16+
#endif
917
}
1018

1119
/// conforms UIApplication to URLHandler to allow dependency injection

0 commit comments

Comments
 (0)