#4094 - Added toast notifications and maximum recording duration.

This commit is contained in:
Stefan Ceriu
2021-06-24 14:02:41 +03:00
parent 433cc15f9d
commit 1594bdda19
6 changed files with 138 additions and 65 deletions
@@ -26,9 +26,13 @@ enum VoiceMessagePlaybackControllerState {
class VoiceMessagePlaybackController: VoiceMessageAudioPlayerDelegate, VoiceMessagePlaybackViewDelegate {
private enum Constants {
static let elapsedTimeFormat = "m:ss"
}
private static let timeFormatter: DateFormatter = {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "m:ss"
dateFormatter.dateFormat = Constants.elapsedTimeFormat
return dateFormatter
}()