From bac4f6e69c51fcf7eaf9d5dc68d0f158dff0e4cd Mon Sep 17 00:00:00 2001 From: Dan Kurin Date: Fri, 8 Sep 2023 13:58:26 -0400 Subject: [PATCH] Implement https://github.com/capacitor-community/camera-preview/pull/308 --- README.md | 8 ++ ios/Plugin/CameraController.swift | 124 +++++++++++++----------------- ios/Plugin/Plugin.m | 1 + ios/Plugin/Plugin.swift | 42 +++++++--- src/definitions.ts | 5 +- src/web.ts | 4 + 6 files changed, 100 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index 18bff45f..215ff3b8 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ Starts the camera preview instance. | lockAndroidOrientation | boolean | (optional) Locks device orientation when camera is showing, default false. (applicable to Android only) | | enableOpacity | boolean | (optional) Make the camera preview see-through. Ideal for augmented reality uses. Default false (applicable to Android and web only) | enableZoom | boolean | (optional) Set if you can pinch to zoom. Default false (applicable to the android and ios platforms only) +| mirrorVideo | boolean | (optional) Set if the video should be mirrored to match the preview. Defaults to false (applicable to the iOS platform only)