diff --git a/ios/Classes/SwiftFlutterWebAuthPlugin.swift b/ios/Classes/SwiftFlutterWebAuthPlugin.swift index 1b4e60b..165a30c 100644 --- a/ios/Classes/SwiftFlutterWebAuthPlugin.swift +++ b/ios/Classes/SwiftFlutterWebAuthPlugin.swift @@ -25,7 +25,9 @@ public class SwiftFlutterWebAuthPlugin: NSObject, FlutterPlugin { result(FlutterError(code: "CANCELED", message: "User canceled login", details: nil)) return } - } else { + } + + if #available(iOS 11, *) { if case SFAuthenticationError.canceledLogin = err { result(FlutterError(code: "CANCELED", message: "User canceled login", details: nil)) return