Expose better broadcast details to the view

Starting from the sender name but we can add more things. This is up to the design expectation
This commit is contained in:
manuroe
2022-10-19 15:32:03 +02:00
committed by yostyle
parent e2f41f45f1
commit 79ca7b8dc0
8 changed files with 31 additions and 29 deletions
@@ -28,12 +28,14 @@ struct VoiceBroadcastPlaybackView: View {
@ObservedObject var viewModel: VoiceBroadcastPlaybackViewModel.Context
var body: some View {
let voiceBroadcast = viewModel.viewState.voiceBroadcast
let details = viewModel.viewState.details
VStack(alignment: .leading, spacing: 16.0) {
Text(VectorL10n.voiceBroadcastInTimelineTitle)
Text(details.senderDisplayName ?? "")
//Text(VectorL10n.voiceBroadcastInTimelineTitle)
.font(theme.fonts.bodySB)
.foregroundColor(theme.colors.primaryContent)
// Text(VectorL10n.voiceBroadcastInTimelineBody)
// .font(theme.fonts.body)
// .foregroundColor(theme.colors.primaryContent)