Question: How to add a continuous sine wave mask to an image iOS?

Question

How to add a continuous sine wave mask to an image iOS?

Answers 1
Added at 2017-01-05 12:01
Tags
Question

I am trying to create a loader framework which will almost look like this. But I don't have much info about how to do this. Creating a sine wave using UIBezierPath and CAShapeLayer is possible. But How can I create a continuous sine wave like this? Also how to use this as a mask?

Any hint will be a great help.

enter image description here

Answers
nr: #1 dodano: 2017-01-05 16:01

I would suggest let designer create flash file and then convert flash into multiple images. Once you have multiple images, use below lib to show animation as loader.

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

This is what I do in multiple projects.

Source Show
◀ Wstecz