From 79ef44f943f460c0440f65d34d80a830a9a0a46d Mon Sep 17 00:00:00 2001 From: Steven Gunanto Date: Tue, 27 Oct 2020 09:35:12 +0700 Subject: [PATCH] Fixing wrong casting --- ios/Classes/ChromeSafariBrowserManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/ChromeSafariBrowserManager.swift b/ios/Classes/ChromeSafariBrowserManager.swift index 2e5c9ca9..23d48109 100755 --- a/ios/Classes/ChromeSafariBrowserManager.swift +++ b/ios/Classes/ChromeSafariBrowserManager.swift @@ -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)