yackle / CLImageEditor

MIT License
2.21k stars 574 forks source link

Two Navigation bar overlaps while editing selected image #232

Open Milap-Kundalia opened 4 years ago

Milap-Kundalia commented 4 years ago

Simulator Screen Shot - iPhone 11 Pro Max - 2019-10-17 at 09 42 07 In iPhone X and above I am facing this issue. when you select an image from the gallery and edit that image with any editing tool this happens and this navigation bar becomes unclickable. This happens in the demo app also.

I am testing in iOS 13 and iPhone X and above devices

quang-truong-le-ngo commented 4 years ago

I have the same issue while using UIImagePickerController pushViewController method so I change the way to display the CLImageEditor by present it full screen. Worked for me

picker.dismiss(animated: false) {[weak self] in
            guard let strongSelf = self,
                let image = info[UIImagePickerController.InfoKey.originalImage] as? UIImage,
                let editor = CLImageEditor(image: image) else {return}

            editor.modalPresentationStyle = .fullScreen
            strongSelf.present(editor, animated: true, completion: nil)
EpicDraws commented 4 years ago

@quang-truong-le-ngo for some reason that isn't working for me. I've changed my UIImagePickerController and the CLImageEditor to display full screen but I'm still seeing the issue above. Has anyone else found a different solution?

EpicDraws commented 4 years ago

The fix from #220 worked for me.