I would like to animate an UIImageView. I declared a NSLayoutConstraint in viewDidLoad and used this code:
NSLayoutConstraint
viewDidLoad
UIView.animate(withDurat
Please set your constraint in viewDidAppear and try below correction
myConstant = 100 myConstraint.constant = myConstant UIView.animateWithDuration(1, animations: { self.view.layoutIfNeeded() }, completion: {finished in })