|
@@ -37,6 +37,13 @@ class BaseNewWebViewController: BaseViewController {
|
|
|
}
|
|
|
|
|
|
override func setupViews() {
|
|
|
+ if #available(iOS 11.0, *) {
|
|
|
+ UIScrollView.appearance().contentInsetAdjustmentBehavior = .automatic
|
|
|
+ } else {
|
|
|
+ if self.responds(to: #selector(setter: self.automaticallyAdjustsScrollViewInsets)) {
|
|
|
+ self.automaticallyAdjustsScrollViewInsets = true
|
|
|
+ }
|
|
|
+ }
|
|
|
view.addSubview(webView)
|
|
|
}
|
|
|
|