Quantcast
Channel: How to animate a UIImage constraints in Swift 4 - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Shehata Gamal for How to animate a UIImage constraints in Swift 4

$
0
0

Hook the leading , trailing , CenterX OR CenterY constraint of the UIImageView and do this

self.imageLeadCon.constant = // valueUIView.animate(withDuration: 3.0 ,  animations: {   self.view.layoutIfNeeded()    // animation}, completion: { _ in    // completion})

Viewing all articles
Browse latest Browse all 4

Trending Articles



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