Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Update IOS 13
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen Tuan Hai committed Jan 8, 2020
1 parent 0b9a346 commit cc09832
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ open class CameraViewController: UIViewController {
internal func showLibrary() {
let imagePicker = CameraViewController.imagePickerViewController(croppingParameters: croppingParameters) { [weak self] image, asset in
defer {
self?.cameraView.startSession()
self?.dismiss(animated: true, completion: nil)
}

Expand Down Expand Up @@ -575,6 +576,7 @@ open class CameraViewController: UIViewController {
let confirmViewController = ConfirmViewController(image: uiImage, croppingParameters: croppingParameters)
confirmViewController.onComplete = { [weak self] image, asset in
defer {
self?.cameraView.startSession()
self?.dismiss(animated: true, completion: nil)
}

Expand All @@ -593,6 +595,7 @@ open class CameraViewController: UIViewController {
let confirmViewController = ConfirmViewController(asset: asset, croppingParameters: croppingParameters)
confirmViewController.onComplete = { [weak self] image, asset in
defer {
self?.cameraView.startSession()
self?.dismiss(animated: true, completion: nil)
}

Expand Down

0 comments on commit cc09832

Please sign in to comment.