Skip to content

Commit

Permalink
Demo: 'UIImagePickerControllerSourceType' has been renamed to 'UIImag…
Browse files Browse the repository at this point in the history
…ePickerController.SourceType'

refs artemkrachulov#41 artemkrachulov#18
  • Loading branch information
ykws committed Jan 18, 2022
1 parent a7a65ed commit 5b7a92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AKImageCropperViewExample/HomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ final class HomeViewController: UIViewController {

@IBAction func galleryAction() {

if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.savedPhotosAlbum) {
if UIImagePickerController.isSourceTypeAvailable(UIImagePickerController.SourceType.savedPhotosAlbum) {

let imagePicker = UIImagePickerController()
imagePicker.delegate = self
imagePicker.sourceType = UIImagePickerControllerSourceType.savedPhotosAlbum
imagePicker.sourceType = UIImagePickerController.SourceType.savedPhotosAlbum
imagePicker.allowsEditing = false

present(imagePicker, animated: true, completion: nil)
Expand Down

0 comments on commit 5b7a92a

Please sign in to comment.