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

Fix compiler issues for Xcode 16 Support #856

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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