title: Scale UIButton Animation- Swift
body: <p>I'm trying to do scale animation for <code>UIButton</code> when its clicked but what I'm trying to accomplish is when the button clicked I need the <code>UIButton</code> to be smaller to the inside then it comes back to its same size (like a bubble).</p>
  
  <p>I tried the following:</p>
  
  <pre><code>button.transform = CGAffineTransformMakeScale(-1, 1)
  
  UIView.animateWithDuration(0.5, animations: { () -&gt; Void in
  
      button.transform = CGAffineTransformMakeScale(1,1)
  
  })
  </code></pre>