Skip to content

Instantly share code, notes, and snippets.

@pgpt10
Created July 31, 2017 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgpt10/4ef14d11a2b9f32dec7c961d78e57829 to your computer and use it in GitHub Desktop.
Save pgpt10/4ef14d11a2b9f32dec7c961d78e57829 to your computer and use it in GitHub Desktop.
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