AudioRecorder to show the recording time iOS Swift 3
let min = Int(recorder.currentTime / 60)
let sec = Int(recorder.currentTime.truncatingRemainder(dividingBy: 60))
let playinTime = String(format: "%02d:%02d", min, sec)
audioTimer.text = playinTime
In the above min variable is used for calculating the minutes from the recorder.After that sec is used for get the seconds from the recorder.
There after you can display it in your own formation using string format method.
In the above min variable is used for calculating the minutes from the recorder.After that sec is used for get the seconds from the recorder.
There after you can display it in your own formation using string format method.
Las vegas recording studios Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome!
ReplyDelete