I\'ve searched loads of SO stuff and in Apple\'s references, but still unable to manage my problem.
UIImageView
For iOS 10 use UIViewPropertyAnimator to animate. It provides methods to start, stop and pause UIView animations.
let animator = UIViewPropertyAnimator(duration: 2.0, curve: .easeOut){
self.view.alpha = 0.0
}
// Call this to start animation.
animator.startAnimation()
// Call this to stop animation.
animator.stopAnimation(true)