alankarmisra / SwiftSiriWaveformView

A UIView subclass that reproduces the waveform effect seen in Siri on iOS 7+. It is a Swift adaptation of the amazing SCSiriWaveformView by Stefan Ceriu.
MIT License
176 stars 29 forks source link

Support for programmatically adding the SwiftSiriWaveformView #7

Closed LeonardoCardoso closed 7 years ago

LeonardoCardoso commented 7 years ago

Not everyone uses exclusively Storyboards, it'd be nice if there was a support to instantiate simply like this:

let bounds = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 60)
let siriWaveFormView: SwiftSiriWaveformView = SwiftSiriWaveformView(frame: bounds)

It seems you haven't created the default init().

kyramckenna commented 6 years ago

I see that even if the noise changes in the background the wave never changes