title: iOS how to create animating buttons similar to Twitter heart button?
body: <p>I have created custom buttons and worked with custom UIViews in the past. However I am not sure how to go about with this.</p>
  
  <p>I am trying to create something similar to the twitter heart animation.
  What I am unable to get is those tiny colored circles around the heart as shown in this gif:</p>
  
  <p><a href="https://dribbble.com/shots/2416983-Twitter-Heart-Animation" rel="nofollow">https://dribbble.com/shots/2416983-Twitter-Heart-Animation</a></p>
  
  <p>Any ideas?</p>
  
  <p>Also is it possible for me to simply have a gif and add the gif as a custom view in a UIButton and play the gif when button is pressed?</p>