UIView animation as a Periscope application

I want to recreate the animation that exists in the Periscope application. In the application, the user clicks on the screen, and small hearts go from the button to the right of the screen halfway up and disappear from the screen.

I was wondering what would be the most efficient way to implement this? UIView / UIKit Dynamics / CABasicAnimation Animation?

This is a screenshot from the app.

enter image description here

Thank,

+4
source share
2 answers

You can easily create this effect with particles in SpriteKit. It is precisely designed to create such effects, especially in games, but it can also be used in regular applications. An interesting class is SKEmitterNode.

: https://developer.apple.com/library/ios/documentation/SpriteKit/Reference/SKEmitterNode_Ref/index.html

+3

All Articles