Created
July 31, 2017 15:02
-
-
Save pgpt10/4ef14d11a2b9f32dec7c961d78e57829 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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