Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created May 19, 2020 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/821a30599dd807a31a07cfa248b45b53 to your computer and use it in GitHub Desktop.
Save stevencurtis/821a30599dd807a31a07cfa248b45b53 to your computer and use it in GitHub Desktop.
nestedanimation
UIView.animate(withDuration: 5.0, animations: {
self.coverView.alpha = 0.0
self.coverBottomConstraint = newBottomConstraint
self.view.layoutIfNeeded()
}) { _ in
UIView.animate(withDuration: 5.0, animations: {
}) { _ in
// nested animation
UIView.animate(withDuration: 5.0, animations: {
}) { _ in
// nested animation
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment