shin8484 / PopupWindow

PopupWindow is a simple Popup using another UIWindow in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unidentified view on top of popup view if rendered after camera image picker dismissal

cha777 opened this issue · comments

I tried showing login screen popup provided in the demo after a the dismissal of camera imagepicker view. It shows 2 unidentified views on top of the popup view causing to obstruct interaction with the popup view. This happens only if i tried to show the popup after camera view dismissal

Device: iPhone XS
iOS: 13.5.1

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    let imagePickerVC = UIImagePickerController()
    imagePickerVC.delegate = self
    magePickerVC.sourceType = .camera
    imagePickerVC.videoMaximumDuration = 10
    imagePickerVC.mediaTypes = [String(kUTTypeMovie), String(kUTTypeImage)]
    present(imagePickerVC, animated: true)
}

func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
    dismiss(animated: true) {
        PopupWindowManager.shared.changeKeyWindow(rootViewController: LoginPopupViewController())
    }
}

Screenshot 2020-06-27 at 00 36 31

Good luck getting an answer, he never responds.