Fixing wrong casting

This commit is contained in:
Steven Gunanto 2020-10-27 09:35:12 +07:00 committed by GitHub
parent eaad17eb4f
commit 79ef44f943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ public class ChromeSafariBrowserManager: NSObject, FlutterPlugin {
if #available(iOS 9.0, *) {
if let flutterViewController = UIApplication.shared.delegate?.window.unsafelyUnwrapped?.rootViewController as? FlutterViewController {
if let flutterViewController = UIApplication.shared.delegate?.window.unsafelyUnwrapped?.rootViewController {
let safariOptions = SafariBrowserOptions()
let _ = safariOptions.parse(options: options)