Using now systemGroupedBackground()

This commit is contained in:
dankito 2020-08-24 17:56:56 +02:00
parent 974d427e1a
commit b3dd944ce5
1 changed files with 6 additions and 6 deletions

View File

@ -13,15 +13,15 @@ struct AccountsTab: View {
VStack { VStack {
if data.banks.isEmpty { if data.banks.isEmpty {
Spacer() Spacer()
AddAccountButtonView() AddAccountButtonView()
Spacer() Spacer()
} }
else { else {
Form { Form {
AllBanksListItem(banks: data.banks) AllBanksListItem(banks: data.banks)
ForEach(data.banks) { bank in ForEach(data.banks) { bank in
BankListItem(bank: bank) BankListItem(bank: bank)
} }
@ -29,13 +29,13 @@ struct AccountsTab: View {
Section { Section {
AddAccountButtonView() AddAccountButtonView()
} }
.background(Color(UIColor.systemGroupedBackground)) .systemGroupedBackground()
.listRowInsets(EdgeInsets()) .listRowInsets(EdgeInsets())
} }
} }
} }
.background(Color(UIColor.systemGroupedBackground)) .systemGroupedBackground()
} }
} }