Skip to content

Instantly share code, notes, and snippets.

@saoudrizwan
Last active January 22, 2017 02:50
Show Gist options
  • Save saoudrizwan/9c70b93ad911f2130d64d103064e4da3 to your computer and use it in GitHub Desktop.
Save saoudrizwan/9c70b93ad911f2130d64d103064e4da3 to your computer and use it in GitHub Desktop.
// 1. change some constraints
navBarHeightConstraint.update(offset: 80)
// 2. animate
UIView.animate(withDuration: 0.10, delay: 0.0, options: .curveLinear, animations: {
self.navBar.layoutIfNeeded()
}, completion: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment