self.nameInputConstraint.constant = 10 UIView.animate(withDuration: 0.5) { self.view.layoutIfNeeded() }