From 61ae37a3b3c009f45564ff094e87cdbd330bc30c Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 26 Jul 2020 20:06:59 +0200 Subject: [PATCH] Set min and max height for label and usage so that list items have a fixed height --- .../BankingiOSApp/ui/views/AccountTransactionListItem.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionListItem.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionListItem.swift index 6375f05d..c9012263 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionListItem.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionListItem.swift @@ -33,10 +33,12 @@ struct AccountTransactionListItem: View { VStack(alignment: .leading) { Text(getTransactionLabel(transaction)) .font(.headline) - .padding(.bottom, 4) + .frame(height: 20) Text(transaction.usage) .styleAsDetail() + .padding(.top, 4) + .frame(height: 42, alignment: .center) } Spacer()