Skip to content

Commit

Permalink
Demo: 'UIAlertActionStyle' has been renamed to 'UIAlertAction.Style'
Browse files Browse the repository at this point in the history
  • Loading branch information
ykws committed Jan 18, 2022
1 parent d5d510c commit 10b6254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AKImageCropperViewExample/CropperViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ final class CropperViewController: UIViewController {
let alertController = UIAlertController(title: "Warning!", message:
"All changes will be lost.", preferredStyle: UIAlertController.Style.alert)

alertController.addAction(UIAlertAction(title: "Yes", style: UIAlertActionStyle.cancel, handler: { _ in
alertController.addAction(UIAlertAction(title: "Yes", style: UIAlertAction.Style.cancel, handler: { _ in

_ = self.navigationController?.popViewController(animated: true)
}))

alertController.addAction(UIAlertAction(title: "No", style: UIAlertActionStyle.default, handler: nil))
alertController.addAction(UIAlertAction(title: "No", style: UIAlertAction.Style.default, handler: nil))

present(alertController, animated: true, completion: nil)
return
Expand Down

0 comments on commit 10b6254

Please sign in to comment.