Skip to content

Commit

Permalink
Fix an issue with iOS 13 modals conflicting with the blur brush gestu…
Browse files Browse the repository at this point in the history
…re (#42)
  • Loading branch information
ntnmrndn authored Mar 10, 2020
1 parent ac85802 commit 2c444b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/Demo/EditorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ final class EditorViewController : UIViewController {
let controller = PixelEditViewController.init(image: UIImage(named: "large")!)

let nav = UINavigationController(rootViewController: controller)
nav.modalPresentationStyle = .fullScreen

present(nav, animated: true, completion: nil)
}
Expand All @@ -59,9 +60,9 @@ final class EditorViewController : UIViewController {

@IBAction func didTapPushKeepingButton(_ sender: Any) {

let controller = PixelEditViewController.init(editingStack: stack)
let controller = PixelEditViewController(editingStack: stack)
controller.delegate = self

navigationController?.pushViewController(controller, animated: true)

}
Expand All @@ -82,7 +83,7 @@ extension EditorViewController : UIImagePickerControllerDelegate, UINavigationCo
let controller = PixelEditViewController.init(
image: image
)

controller.delegate = self

navigationController?.pushViewController(controller, animated: true)
Expand Down

0 comments on commit 2c444b0

Please sign in to comment.