Guest User

Untitled

a guest
Jan 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. internal func startRecpectMeterBouncing() {
  2. respectView?.layer.removeAllAnimations()
  3. respectView?.transform = .identity
  4. UIView.animate(withDuration: 0.3, delay: 0, options: [ .curveLinear, .repeat, .autoreverse ], animations: {
  5. self.respectView?.transform = CGAffineTransform(scaleX: 0.7, y: 0.7)
  6. }, completion: nil)
  7. }
  8.  
  9. internal func stopRecpectMeterBouncing() {
  10. respectView?.layer.removeAllAnimations()
  11. respectView?.transform = .identity
  12. }
Add Comment
Please, Sign In to add comment