Describe the bug
This happened with new Xcode and iOS updates ( don't know if this is the exact issue). it was working fine. but with the dismiss
or dismissAnimatedFrom
called, whole screen turn into a blank black. no any error or nothing.
To Reproduce
Steps to reproduce the behavior:
CroppedViewController
, it gives me the same result. here is how I use it. everything woks fine until here.public func updateImageViewWithImage(_ image: UIImage, fromCropViewController cropViewController: CropViewController) {
imageView.image = image
layoutImageView()
self.navigationItem.rightBarButtonItem?.isEnabled = true
if cropViewController.croppingStyle != .circular {
imageView.isHidden = true
cropViewController.dismissAnimatedFrom(self, withCroppedImage: image,
toView: imageView,
toFrame: CGRect.zero,
setup: { self.layoutImageView() },
completion: {
self.imageView.isHidden = false })
}
else {
self.imageView.isHidden = false
cropViewController.dismiss(animated: true, completion: nil)
}
}
Expected behavior
Cropped image should show and CroppedViewController
should dismiss.
Screenshots
Here is a gif to give you a clear idea.
iOS Device:
Additional context
dismiss
the CroppedViewController
, but it also didn't success.CropViewController.swift
, not with TO
@anuradhss
cropViewController.modalPresentationStyle = .fullScreen
Should fix this issue
@lmr-soltanov yep, it works and updated at the repo as well. thanks
Thank you @lmr-soltanov & @anuradhss
It's working.
Most helpful comment
@anuradhss
cropViewController.modalPresentationStyle = .fullScreen
Should fix this issue