Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bachino90 committed Feb 28, 2024
1 parent 99cae38 commit 7a3f52c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ public class CameraPreview: CAPPlugin {
self.cameraPosition = call.getString("position") ?? "rear"
self.highResolutionOutput = call.getBool("enableHighResolution") ?? false
self.cameraController.highResolutionOutput = self.highResolutionOutput
cameraController.delegate = self

let faceRecognition: Bool = call.getBool("faceRecognition", false)
if faceRecognition {
cameraController.delegate = self
}

if call.getInt("width") != nil {
self.width = CGFloat(call.getInt("width")!)
Expand Down

0 comments on commit 7a3f52c

Please sign in to comment.