@capgo/inappbrowser 7.20.4 → 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 = statusBarHeight + navBarHeight
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "7.20.4",
3
+ "version": "7.20.6",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",