I would like to ask how can I make an if-statement which compares color? Mine doesn't work...
UIView.animateWithDuration(10,
animations: {
self.labelTen.layer.backgroundColor = self.timeOneColor.CGColor
}
)
if(self.labelTen.backgroundColor == timeOneColor)
{
print("something")
}