Skip to content

Commit

Permalink
Fix compiler issues for Xcode 16 Support (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
staskus authored Sep 12, 2024
2 parents 08a25e9 + 0c8a006 commit 10ea63e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _None._

### Internal Changes

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

## 9.0.9

Expand Down
8 changes: 8 additions & 0 deletions WordPressAuthenticator/Email Client Picker/URLHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
public protocol URLHandler {
/// checks if the specified URL can be opened
func canOpenURL(_ url: URL) -> Bool

#if compiler(>=6)
/// opens the specified URL
func open(_ url: URL,
options: [UIApplication.OpenExternalURLOptionsKey: Any],
completionHandler completion: (@MainActor @Sendable (Bool) -> Void)?)
#else
/// opens the specified URL
func open(_ url: URL,
options: [UIApplication.OpenExternalURLOptionsKey: Any],
completionHandler completion: ((Bool) -> Void)?)
#endif
}

/// conforms UIApplication to URLHandler to allow dependency injection
Expand Down

0 comments on commit 10ea63e

Please sign in to comment.