@capgo/camera-preview 8.11.10 → 8.11.12
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
|
-
|
|
494
|
-
|
|
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.
|
|
38
|
+
private let pluginVersion: String = "8.11.12"
|
|
39
39
|
public let identifier = "CameraPreviewPlugin"
|
|
40
40
|
public let jsName = "CameraPreview"
|
|
41
41
|
public let pluginMethods: [CAPPluginMethod] = [
|