Skip to content

Instantly share code, notes, and snippets.

View ThoseGuysInTown's full-sized avatar
🎯
Focusing

kev ThoseGuysInTown

🎯
Focusing
  • brooklyn
View GitHub Profile
override var isHighlighted: Bool {
didSet {
if isHighlighted {
UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseOut, animations: {
self.transform = CGAffineTransform(scaleX: 0.95, y: 0.95)
}, completion: nil)
} else {
UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseOut, animations: {
self.transform = CGAffineTransform(scaleX: 1, y: 1)