capacitor-plugin-status-bar 2.0.12 → 2.0.13
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.
|
@@ -241,11 +241,14 @@ import Capacitor
|
|
|
241
241
|
let safeAreaInsets = window.safeAreaInsets
|
|
242
242
|
|
|
243
243
|
insets["top"] = self.sanitizedInsetValue(safeAreaInsets.top)
|
|
244
|
-
|
|
244
|
+
let homeIndicatorHeight: CGFloat = safeAreaInsets.bottom > 0
|
|
245
|
+
? min(13.0, safeAreaInsets.bottom)
|
|
246
|
+
: 0
|
|
247
|
+
insets["bottom"] = self.sanitizedInsetValue(homeIndicatorHeight)
|
|
245
248
|
insets["left"] = 0
|
|
246
249
|
insets["right"] = 0
|
|
247
250
|
|
|
248
|
-
print("CapacitorStatusBar: getSafeAreaInsets - top=\(safeAreaInsets.top), bottom=\(safeAreaInsets.bottom), left=\(safeAreaInsets.left), right=\(safeAreaInsets.right)")
|
|
251
|
+
print("CapacitorStatusBar: getSafeAreaInsets - top=\(safeAreaInsets.top), bottom=\(homeIndicatorHeight) (raw: \(safeAreaInsets.bottom)), left=\(safeAreaInsets.left), right=\(safeAreaInsets.right)")
|
|
249
252
|
} else {
|
|
250
253
|
print("CapacitorStatusBar: getSafeAreaInsets - Unable to get window, returning zero insets")
|
|
251
254
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-plugin-status-bar",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "Capacitor plugin for managing the status bar style, visibility, and color on iOS and Android. Control overlay modes, background colors, and appearance for native mobile applications.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|