Question : swift how to animate constraint change
Answered by : impossible-ibex-bcgvplpok6vu
You need to first change the constraint and then animate the update.
self.nameInputConstraint.constant = 8
UIView.animate(withDuration: 0.5) { self.view.layoutIfNeeded()
}
Source : | Last Update : Mon, 20 Jan 20
Question : swift animate constraint
Answered by : rouani-ayoub
self.nameInputConstraint.constant = 10
UIView.animate(withDuration: 0.5) { self.view.layoutIfNeeded()
}
Source : | Last Update : Mon, 02 Aug 21
Question : swift animate constraint
Answered by : rouani-ayoub
self.nameInputConstraint.constant = 8
UIView.animate(withDuration: 0.5) { self.view.layoutIfNeeded()
}
Source : | Last Update : Tue, 12 Oct 21