@capgo/inappbrowser 7.20.5 → 7.20.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -213,7 +213,7 @@ open class WKWebViewController: UIViewController, WKScriptMessageHandler {
|
|
|
213
213
|
|
|
214
214
|
// Calculate total height - status bar + navigation bar
|
|
215
215
|
let navBarHeight = navigationController?.navigationBar.frame.height ?? 44
|
|
216
|
-
let totalHeight =
|
|
216
|
+
let totalHeight = (navigationController?.view.safeAreaInsets.top ?? CGFloat(0)) + navBarHeight
|
|
217
217
|
|
|
218
218
|
// Position from top of screen to bottom of navigation bar
|
|
219
219
|
NSLayoutConstraint.activate([
|
|
@@ -230,6 +230,7 @@ open class WKWebViewController: UIViewController, WKScriptMessageHandler {
|
|
|
230
230
|
navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
|
|
231
231
|
navigationController?.navigationBar.shadowImage = UIImage()
|
|
232
232
|
navigationController?.navigationBar.isTranslucent = true
|
|
233
|
+
navigationController?.navigationBar.isTranslucent = true
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
|