Update on VoiceBroadcast currentRecordingState creation

This commit is contained in:
Philippe Loriaux
2022-11-23 13:46:30 +01:00
parent d36d12a4d9
commit 2b4529cc4a
4 changed files with 16 additions and 14 deletions
@@ -54,14 +54,12 @@ struct VoiceBroadcastRecorderView: View {
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)
}
Label {
Text(viewModel.viewState.currentRecordingState.remainingTimeLabel)
.foregroundColor(theme.colors.secondaryContent)
.font(theme.fonts.caption1)
} icon: {
Image(uiImage: Asset.Images.voiceBroadcastTimeLeft.image)
}
}.frame(maxWidth: .infinity, alignment: .leading)