Quantcast
Channel: How do I animate constraint changes? - Stack Overflow
Viewing all articles
Browse latest Browse all 13

Answer by Nazariy Vlizlo for How do I animate constraint changes?

$
0
0

Swift solution:

yourConstraint.constant = 50UIView.animate(withDuration: 1.0, animations: {    yourView.layoutIfNeeded})

Viewing all articles
Browse latest Browse all 13

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>