Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
override var isSelected: Bool{
didSet{
if self.isSelected
{
self.transform = CGAffineTransform(scaleX: 1.1, y: 1.1)
self.contentView.backgroundColor = UIColor.red
self.tickImageView.isHidden = false
}
else
{
self.transform = CGAffineTransform.identity
self.contentView.backgroundColor = UIColor.gray
self.tickImageView.isHidden = true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.