Created
December 12, 2016 20:47
-
-
Save zwaldowski/0ffec2676c063f398a1083d07bae64ab 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
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