Skip to content

Commit d09b345

Browse files
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

File tree

IFTTT SDK/AuthenticationSessionPresentationContextProvider.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ class AuthenticationSessionContextPresentationProvider: NSObject, ASWebAuthentic
2121
super.init()
2222
}
2323

24-
@available(iOS 12.0, *)
2524
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
2625
return presentationContext
2726
}
28-
29-
@available(iOS 13.0, *)
27+
3028
func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
3129
return presentationContext
3230
}

0 commit comments

Comments
 (0)