Created
May 15, 2020 16:33
-
-
Save stevencurtis/444091ccfa9f38c9dffa5cb3b82a8e58 to your computer and use it in GitHub Desktop.
animatecompletion
This file contains 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
UIView.animate(withDuration: 5.0, animations: { | |
self.coverView.alpha = 0.0 | |
self.coverBottomConstraint = newBottomConstraint | |
self.view.layoutIfNeeded() | |
}) { _ in | |
self.coverView.removeFromSuperview() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment