Open leonardbonfils opened 8 years ago
Seconded! Not that I don't appreciate the effort already put in, but the learning curve for both is steep
I don't see why a special documentation would be needed? Objective-C and Swift are pretty much interchangeable minus the bridging header. A good starting point would be the EZAudio-Swift project.
It would really help beginners who are trying to use this library. I consider myself somewhere between the beginner and intermediate levels of Swift-based iOS development, and while I am now able to understand a good portion of Objective-C code pretty well, I still don't understand everything, and truthfully, I'd rather focus on Swift than spend time learning Objective-C at the moment. So having a Swift documentation would be very nice to really help us Swift-only developers take advantage of the library.
@freak4pc i still think swift documentation would be good, but i will take your advice also. thanks.
If there's a notion for doing this I'd love to help. Wouldn't mind migrating the README.md file to Swift and have a link connecting the two.
@syedhali Would you accept a PR for this?
Using EZAudio with Swift has been pretty simple for me.
player.audioFile.getWaveformDataWithNumberOfPoints(1024, completion: { [unowned self] (buffer: UnsafeMutablePointer<UnsafeMutablePointer<Float>>, bufferSize: Int32) in
self.audioPlot?.updateBuffer(buffer[0], withBufferSize: UInt32(bufferSize))
})
A lot of people are learning Swift and not Objective-C now. It would be really nice if you guys could translate your entire documentation to Swift so us Swift-users can use this library more easily :)
Thanks