Protocol 'ASAuthorizationControllerPresentationContextProviding' requires 'presentationAnchor(for:)' to be available in iOS 12.0 and newer
AuthenticationSessionPresentationContextProvider.swift:30
With Xcode 26.4.1 protocol witness rules are enforced more strictly which causes this code to fail:
class AuthenticationSessionContextPresentationProvider: NSObject, ASWebAuthenticationPresentationContextProviding, ASAuthorizationControllerPresentationContextProviding {
@available(iOS 12.0, *)
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
return presentationContext
}
@available(iOS 13.0, *)
func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
return presentationContext
}
}
With Xcode 26.4.1 protocol witness rules are enforced more strictly which causes this code to fail: