Closed akaralar closed 5 years ago
Try changing this let frame = view.convert(imageView.bounds, from: imageView)
to this let frame = view.convert(imageView.frame, to: nil)
and let me know if that works.
Thanks for the suggestion but I can't reproduce the issue above again. I wonder whether it was related to the image itself. I'll reopen if this happens again and your solution doesn't fix it. Thanks for taking the time!
I'm trying to implement custom transition as it's mentioned on the readme, where
imageView
passed to the function is an imageView from a table view cell:The dismiss animation looks and works as intended, but the entrance to the animation looks off. Any idea why that might be happening? I recorded 2 gifs to illustrate the problem.
Content mode is set to aspect fit. I put logs in the library and the frames are calculated correctly. I'm at a loss why this is happening.