Remove animation in swift Remove animation in swift swift swift

Remove animation in swift


//Just remove the animation from the label. It will Work func remove(){    self.hintLabel.layer.removeAllAnimations()    self.view.layer.removeAllAnimations()    self.view.layoutIfNeeded()}

Update:

If you want to go nuclear, you could do this, as well:

func nukeAllAnimations() {    self.view.subviews.forEach({$0.layer.removeAllAnimations()})    self.view.layer.removeAllAnimations()    self.view.layoutIfNeeded()}