bastienFalcou / SoundWave

Illustrate your sound waves on the fly 🚀
MIT License
596 stars 93 forks source link

'AudioVisualizationView' initializer is inaccessible due to 'internal' protection level #17

Closed guoyingtao closed 5 years ago

guoyingtao commented 5 years ago

The error occurred when I tried to initialize the view like below AudioVisualizationView(frame: CGRect(x: 0.0, y: 0.0, width: 300.0, height: 500.0)))

msjt13 commented 5 years ago

any solution of this ?

OurBigAdventure commented 5 years ago

The two solutions I found were to create the AudioVisualizationView in IB or to just initialize it with AudioVisualizationView() then set the frame.

bastienFalcou commented 5 years ago

@guoyingtao @msjt13 @OurBigAdventure, thank you guys for raising that point, I have just fixed that and it will be in the next version of the Pod!