Skip to content

Commit

Permalink
fix: update preview screen to configure and start camera session
Browse files Browse the repository at this point in the history
  • Loading branch information
phantumcode committed Apr 11, 2024
1 parent 4d65c24 commit 1b02cc7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class CameraPreviewViewModel: NSObject, ObservableObject {
)

do {
try previewCaptureSession?.startSession()
try previewCaptureSession?.configureCamera()
previewCaptureSession?.startSession()
} catch {
Amplify.Logging.default.error("Error starting preview capture session with error: \(error)")
}
Expand Down

0 comments on commit 1b02cc7

Please sign in to comment.