How to add a continuous sinusoidal mask to an iOS image?

I am trying to create a loader framework that will look something like this. But I have little information on how to do this. It is possible to create a sine wave using UIBezierPathand CAShapeLayer. But how can I create a continuous sine wave? Also how to use this as a mask?

Any hint would be a big help.

enter image description here

+4
source share
1 answer

I would suggest that the designer create a flash file and then convert the flash memory to multiple images. When you have multiple images, use the below lib to show the animation as a loader.

https://www.cocoacontrols.com/controls/tsactivityindicatorview

, .

+1

Source: https://habr.com/ru/post/1665866/


All Articles