Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save RaajeevChandran/8ee4df7143b2a32183adc05105111ee3 to your computer and use it in GitHub Desktop.
override func dismissalTransitionWillBegin() {
super.dismissalTransitionWillBegin()
presentedViewController.transitionCoordinator?.animate(alongsideTransition: { [weak self] _ in
guard let self else { return }
self.presentedView?.layer.cornerRadius = .zero
self.dimmedBackgroundView.backgroundColor = .clear
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment