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

Commit 10ea63e

Browse files
authored
Fix compiler issues for Xcode 16 Support (#856)
2 parents 08a25e9 + 0c8a006 commit 10ea63e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ _None._
4646

4747
### Internal Changes
4848

49-
_None._
49+
- Fixed compiler issues for Xcode 16 support [#856]
5050

5151
## 9.0.9
5252

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)