@capawesome/capacitor-screen-orientation 5.0.0 → 5.0.1

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.
@@ -30,7 +30,9 @@ import Capacitor
30
30
  strongSelf.requestGeometryUpdate(orientationValue: nextOrientationValue, orientationMask: nextOrientationMask)
31
31
  ScreenOrientation.supportedInterfaceOrientations = nextOrientationMask
32
32
  UINavigationController.attemptRotationToDeviceOrientation()
33
- strongSelf.requestGeometryUpdate(orientationValue: currentOrientationValue, orientationMask: currentOrientationMask)
33
+ if #unavailable(iOS 16) {
34
+ strongSelf.requestGeometryUpdate(orientationValue: currentOrientationValue, orientationMask: currentOrientationMask)
35
+ }
34
36
  strongSelf.notifyOrientationChangeListeners(orientationType)
35
37
  completion()
36
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/capacitor-screen-orientation",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Capacitor plugin to lock/unlock the screen orientation.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",