override var isHighlighted: Bool { | |
didSet { | |
UIView.animate(withDuration: 0.25, delay: 0, options: [.curveEaseInOut], animations: { | |
if self.isHighlighted { | |
self.cardView.transform = CGAffineTransform(scaleX: 0.95, y: 0.95) | |
} else { | |
self.cardView.transform = CGAffineTransform.identity | |
} | |
}, completion: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment