Created
April 8, 2025 07:46
-
-
Save RaajeevChandran/e26b00c733ce9e25861ee82b15c95c21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private func didGestureTranslationChange(_ translation: CGPoint) { | |
| guard let presentedView = presentedView else { | |
| return | |
| } | |
| let translationY = max(0, translation.y) | |
| presentedView.transform = CGAffineTransform(translationX: 0, y: translationY) | |
| let progress = translationY / presentedView.frame.height | |
| transitioningDelegate?.transition.update(progress) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment