Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !hamburgerMenuIsVisible {
- leadingC.constant = 150
- trailingC.constant = 150
- hamburgerMenuIsVisible = true
- } else {
- leadingC.constant = 0
- trailingC.constant = 0
- hamburgerMenuIsVisible = false
- }
- UIView.animate(withDuration: 0.2, delay: 0.0, options: .curveEaseIn, animations: {
- self.view.layoutIfNeeded()
- }) { (animationComplete) in
- print("The animation is complete.")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement