This is possible in UIKitDynamics, but can also be done using SpriteKit, which greatly simplifies its implementation. I wrote a small component that gives a similar effect in Objecti-C using SpriteKit. You can find it here , it’s not exactly the same, but nearby, and you can use the same approach to create your own or polish it.
Adnan aftab
source share