Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal func startRecpectMeterBouncing() {
- respectView?.layer.removeAllAnimations()
- respectView?.transform = .identity
- UIView.animate(withDuration: 0.3, delay: 0, options: [ .curveLinear, .repeat, .autoreverse ], animations: {
- self.respectView?.transform = CGAffineTransform(scaleX: 0.7, y: 0.7)
- }, completion: nil)
- }
- internal func stopRecpectMeterBouncing() {
- respectView?.layer.removeAllAnimations()
- respectView?.transform = .identity
- }
Add Comment
Please, Sign In to add comment