From 4705500dc4e3d1f899b0475834f409d08d2caee2 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 25 Jan 2023 13:09:43 +0100 Subject: [PATCH] DM: Add vertical padding between messages --- .../Sources/Conversations/Detail/ConversationDetailView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Packages/Conversations/Sources/Conversations/Detail/ConversationDetailView.swift b/Packages/Conversations/Sources/Conversations/Detail/ConversationDetailView.swift index 0b224ca3..850b2dcc 100644 --- a/Packages/Conversations/Sources/Conversations/Detail/ConversationDetailView.swift +++ b/Packages/Conversations/Sources/Conversations/Detail/ConversationDetailView.swift @@ -39,7 +39,8 @@ public struct ConversationDetailView: View { ForEach(viewModel.messages) { message in ConversationMessageView(message: message, conversation: viewModel.conversation) - .id(message.id) + .padding(.vertical, 4) + .id(message.id) } bottomAnchorView } @@ -99,6 +100,7 @@ public struct ConversationDetailView: View { ConversationMessageView(message: message, conversation: viewModel.conversation) .redacted(reason: .placeholder) .shimmering() + .padding(.vertical, 4) } }