Skip to content

Commit

Permalink
fix(ios): set photo preset for high resolution mode
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwolz committed Jun 25, 2024
1 parent 5f34b76 commit f2d96d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Plugin/CameraController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ class CameraController: NSObject {
let captureSession = AVCaptureSession()
self.captureSession = captureSession

if (isHighResolutionPhotoEnabled) {
captureSession.sessionPreset = .photo
}

// Set up preview layer
previewLayer.session = captureSession
previewLayer.videoGravity = AVLayerVideoGravity.resizeAspectFill
Expand Down

0 comments on commit f2d96d6

Please sign in to comment.