I have multiple labels with lightGray background color, and I want to animate their colors to UIColor.clear:
UIView.animate(withDuration: 5.0, animations: {
self.titleLabel.backgroundColor = UIColor.clear
self.dateLabel.backgroundColor = UIColor.clear
self.categoryLabel.backgroundColor = UIColor.clear
})
But color changes instantly! Why?