Skip to content

Instantly share code, notes, and snippets.

@ktanaka117
Created December 31, 2018 15:23
Show Gist options
  • Save ktanaka117/40ce0cb559d588327eed6728ff896dca to your computer and use it in GitHub Desktop.
Save ktanaka117/40ce0cb559d588327eed6728ff896dca to your computer and use it in GitHub Desktop.
view.layoutIfNeeded()
animationView.play { [weak self] _ in
UIView.animate(withDuration: 1.0, animations: { [weak self] in
self?.widthConstraint.constant = 300
self?.heightConstraint.constant = 300
self?.view.layoutIfNeeded()
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment