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

Commit

Permalink
Merge pull request #312 from nguyentuanhai1611/HaiNT_Update_IOS13
Browse files Browse the repository at this point in the history
Update IOS 13
  • Loading branch information
AlexLittlejohn authored Mar 31, 2020
2 parents 0b9a346 + cc09832 commit 5cdffc4
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 5cdffc4

Please sign in to comment.