Commit d09b345
committed
Drop stale @available attributes from context-provider witnesses
Xcode 26.4.1 tightened protocol-witness availability rules: when one
class satisfies both ASWebAuthenticationPresentationContextProviding
(iOS 12+) and ASAuthorizationControllerPresentationContextProviding
(iOS 13+), the shared 'presentationAnchor(for:)' witnesses must be as
available as the least-restrictive protocol, not their individual
availability. That produced:
Protocol 'ASAuthorizationControllerPresentationContextProviding'
requires 'presentationAnchor(for:)' to be available in iOS 12.0 and newer
The @available attributes were left over from when the SDK supported
older deployment targets. The SDK now ships with IPHONEOS_DEPLOYMENT_TARGET
14.2, so both ASWebAuthenticationSession and ASAuthorizationController
are unconditionally available. Drop the attributes; the compiler no
longer complains and behavior is unchanged.1 parent dbe7c1d commit d09b345
1 file changed
Lines changed: 1 addition & 3 deletions
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | | - | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
0 commit comments