Skip to content

Commit

Permalink
🐛 Fix building on iOS (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU authored May 12, 2020
1 parent 2bd28e0 commit 0e3cad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/Classes/SwiftFlutterWebAuthPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e3cad5

Please sign in to comment.