Skip to content

Commit

Permalink
Merge pull request capacitor-community#119 from erichbehrens/master
Browse files Browse the repository at this point in the history
  • Loading branch information
arielhernandezmusa authored Apr 20, 2021
2 parents b20a0b3 + 9241bc1 commit 695b822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class CameraPreview: CAPPlugin {
return
}
let imageData: Data?
if (self.cameraPosition == "front") {
if (self.cameraController.currentCameraPosition == .front) {
let flippedImage = image.withHorizontallyFlippedOrientation()
imageData = flippedImage.jpegData(compressionQuality: CGFloat(quality!/100))
} else {
Expand Down

0 comments on commit 695b822

Please sign in to comment.