adamcichy / SwiftySound

SwiftySound is a simple library that lets you play sounds with a single line of code.
MIT License
1.25k stars 99 forks source link

completion block is only called once #44

Closed artangco closed 5 years ago

artangco commented 5 years ago

I created an instance of a sound and when I need to play it again I'm using the same instance to replay it. What I've noticed that is that if I have a completion block for this sound instance the completion block is only called the first time the sound is played. If I play the sound again the completion block is not called again.

adamcichy commented 5 years ago

I tried to reproduce this issue but it works fine for me. I'm using the example app, you could check the code from the example app and compare with yours. If that wont help, please provide some example code