Add Voice Broadcast left time countdown

This commit is contained in:
Philippe Loriaux
2022-11-23 08:43:22 +01:00
parent 8e30ef5a7a
commit 071f5181ce
12 changed files with 95 additions and 3 deletions
@@ -53,6 +53,16 @@ struct VoiceBroadcastRecorderView: View {
} icon: {
Image(uiImage: Asset.Images.voiceBroadcastTileLive.image)
}
if let remainingTimeLabel = viewModel.viewState.currentRecordingState.remainingTimeLabel {
Label {
Text(remainingTimeLabel)
.foregroundColor(theme.colors.secondaryContent)
.font(theme.fonts.caption1)
} icon: {
Image(uiImage: Asset.Images.voiceBroadcastTimeLeft.image)
}
}
}.frame(maxWidth: .infinity, alignment: .leading)
Label {