From 2a2e1007b3bb4a37b51f04855336b1c12988e5b4 Mon Sep 17 00:00:00 2001 From: Artur Guseinov Date: Tue, 10 Oct 2023 23:43:07 +0800 Subject: [PATCH] Messages badge layout fixed --- .../Notifications/NotificationsView.swift | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Example/WalletApp/PresentationLayer/Wallet/Notifications/NotificationsView.swift b/Example/WalletApp/PresentationLayer/Wallet/Notifications/NotificationsView.swift index 4ee4fd8c2..73151545c 100644 --- a/Example/WalletApp/PresentationLayer/Wallet/Notifications/NotificationsView.swift +++ b/Example/WalletApp/PresentationLayer/Wallet/Notifications/NotificationsView.swift @@ -126,15 +126,17 @@ struct NotificationsView: View { } Spacer() - + if subscription.hasMessage { - Text(String(subscription.messagesCount)) - .foregroundColor(.Inverse100) - .font(.system(size: 13, weight: .medium)) - .frame(width: 20, height: 20) - .background { - Circle().foregroundColor(.blue100) - } + VStack{ + Text(String(subscription.messagesCount)) + .foregroundColor(.Inverse100) + .font(.system(size: 13, weight: .medium).monospacedDigit()) + .padding(.horizontal, 8) + .padding(.vertical, 4) + }.background { + Capsule().foregroundColor(.blue100) + } } } }