How to animate a line the same way the wave-like effect that Siri's shows?

Skiny picture Skiny · Nov 4, 2013 · Viewed 15.7k times · Source

I would like to create this sound/sin wave that looks like the dynamic audio wave Siri in iOS 7 has:

1

2

3 4

I know how to create and animate UIBezierCurve sin shape and I googled a lot, but I haven't found and have no idea how to achieve this effect.

The line starts flat, than waves and ends flat. I'm not woking with any sound file(s), just the effect of random waving would suffice.

Answer

CSolanaM picture CSolanaM · Jul 11, 2014

Maybe you could try the SCSiriWaveformView's library for iOS, based on OSX's SISinusWaveView:

https://github.com/stefanceriu/SCSiriWaveformView