Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save RaajeevChandran/e26b00c733ce9e25861ee82b15c95c21 to your computer and use it in GitHub Desktop.

Select an option

Save RaajeevChandran/e26b00c733ce9e25861ee82b15c95c21 to your computer and use it in GitHub Desktop.
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