Skip to content

Instantly share code, notes, and snippets.

@zwaldowski
Created December 12, 2016 20:47
Show Gist options
  • Save zwaldowski/0ffec2676c063f398a1083d07bae64ab to your computer and use it in GitHub Desktop.
Save zwaldowski/0ffec2676c063f398a1083d07bae64ab to your computer and use it in GitHub Desktop.
import UIKit
extension UIViewController {
func afterCurrentTransition(_ handler: @escaping(Void) -> Void) {
guard let coordinator = transitionCoordinator else {
return completion()
}
coordinator.animate(alongsideTransition: nil, completion: { _ in
completion()
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment