iOS - How to achieve a particle animation like effect on iOS
问题 I have seen a particle scattering effect on a number of websites and app design concepts on dribbble. The effect is like this:- https://www.craftedbygc.com/ The effect can also be seen as shown in this link:- https://dribbble.com/shots/3511585-hello-dribbble How can we achieve such an effect in an iOS application? 回答1: If you're looking for something simple, check out CAEmitterLayer and CAEmitterCell . Just do a CAEmitterLayer with an emitterShape of kCAEmitterLayerRectangle and you can crop