This commit is contained in:
Lorenzo Pichilli 2019-12-18 21:42:34 +01:00
parent 0e30767c15
commit 7d9f9f56a4
3 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,7 @@
- Fix for Android and iOS `InAppBrowser` for some controller methods not exposed.
- Fixed "App Crashes after clicking on dropdown (Using inappwebview)" [#182](https://github.com/pichillilorenzo/flutter_inappwebview/issues/182)
- Fixed "webview can not be released when in ios" [#225](https://github.com/pichillilorenzo/flutter_inappwebview/issues/225). Now the iOS WebView is released from memory when it is disposed from Flutter.
- Fixed "Setting of presentationStyle not working on iOS" [#213](https://github.com/pichillilorenzo/flutter_inappwebview/issues/213)
### BREAKING CHANGES

View File

@ -106,6 +106,7 @@ public class InAppBrowserManager: NSObject, FlutterPlugin {
webViewController.webViewOptions = webViewOptions
webViewController.isHidden = browserOptions.hidden
webViewController.previousStatusBarStyle = previousStatusBarStyle
webViewController.prepareBeforeViewWillAppear()
return webViewController
}

View File

@ -431,7 +431,9 @@ public class InAppBrowserWebViewController: UIViewController, FlutterPlugin, UIS
if browserOptions?.closeButtonColor != "" {
closeButton.tintColor = color(fromHexString: (browserOptions?.closeButtonColor)!)
}
}
public func prepareBeforeViewWillAppear() {
self.modalPresentationStyle = UIModalPresentationStyle(rawValue: (browserOptions?.presentationStyle)!)!
self.modalTransitionStyle = UIModalTransitionStyle(rawValue: (browserOptions?.transitionStyle)!)!
}