The iOS 18 Zoom Transition animation is glitchy when the source view is a UICollectionViewCell and just after dismissing the Detail View, user swipes their finger on the the UICollectionView. The cell's animation appears glitchy as it's settling into its final position.
Steps to Reproduce:
- Create a UICollectionView with a UICollectionViewCell as a source view for the Zoom Transition
- Implement iOS 18 Zoom Transition using preferredTransition = .zoom { context in return cell }
- Present a detail view by tapping a UICollectionViewCell (zoom in works correctly)
- Dismiss the detail view by performing a swift/quick swipe gesture up or down in one fluid motion
Important to note: This issue does not reproduce if you slowly scroll the scroll view by holding your finger down on it. It only reproduces if you swipe and lift your finger up. I've attached the video showcasing the issue: https://github.com/davor-storyteller/ios-18-zoom-transition-sample/issues/1
Expected Behavior: The detail view should smoothly zoom back into the original collection view cell position with a fluid animation, regardless of swipe gesture.
Actual Behavior: When using swift swipe gestures, the zoom transition back to the collection view cell appears glitchy - the cell animation may appear jerky, incorrectly positioned, or have visual artifacts during the transition.
Here is a link to the Github repository with sample code where this issue is reproducible: https://github.com/davor-storyteller/ios-18-zoom-transition-sample