Created
May 19, 2020 16:07
-
-
Save stevencurtis/d1d227280fdd414426b839d15dcbcd90 to your computer and use it in GitHub Desktop.
UIViewAnimatePyramid
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() | |
self.setupMoveCenter() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment