@capgo/camera-preview 8.11.10 → 8.11.11

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.
@@ -487,13 +487,10 @@ class CameraController: NSObject, CXCallObserverDelegate {
487
487
  // older systems or if the property is unavailable.
488
488
  func getDisplayZoomMultiplier() -> Float {
489
489
  var multiplier: Float = 1.0
490
- // Use KVC to avoid compile-time dependency on the iOS 18 SDK symbol
491
490
  let device = (currentCameraPosition == .rear) ? rearCamera : frontCamera
492
491
  if #available(iOS 18.0, *), let device = device {
493
- if let value = device.value(forKey: "displayVideoZoomFactorMultiplier") as? NSNumber {
494
- let multiplierValue = value.floatValue
495
- if multiplierValue > 0 { multiplier = multiplierValue }
496
- }
492
+ let multiplierValue = device.displayVideoZoomFactorMultiplier
493
+ if multiplierValue > 0 { multiplier = Float(multiplierValue) }
497
494
  }
498
495
  return multiplier
499
496
  }
@@ -35,7 +35,7 @@ extension UIWindow {
35
35
  */
36
36
  @objc(CameraPreview)
37
37
  public class CameraPreview: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelegate {
38
- private let pluginVersion: String = "8.11.10"
38
+ private let pluginVersion: String = "8.11.11"
39
39
  public let identifier = "CameraPreviewPlugin"
40
40
  public let jsName = "CameraPreview"
41
41
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/camera-preview",
3
- "version": "8.11.10",
3
+ "version": "8.11.11",
4
4
  "description": "Camera preview",
5
5
  "license": "MPL-2.0",
6
6
  "repository": {