Animate Constraints

UIView.animate(withDuration: 0.5, animations: { //Map self.constraintMapBottom.constant = UIScreen.main.bounds.height //Buttons self.constraintFloatButtonsBottom.constant = self.constraintFloatButtonsBottom_init self.viewFloatButtons.isHidden = true //List self.constraintListTop.constant = 0.0 self.constraintListBottom.constant = self.constraintListBottom_init self.view.layoutIfNeeded() })

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.