From 0e3cad5d4153e768c3140b63522becdef9453f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Tue, 12 May 2020 15:28:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20building=20on=20iOS=20(#36?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/SwiftFlutterWebAuthPlugin.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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