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 {
if data.banks.isEmpty {
Spacer()
AddAccountButtonView()
Spacer()
}
else {
Form {
AllBanksListItem(banks: data.banks)
ForEach(data.banks) { bank in
BankListItem(bank: bank)
}
@ -29,13 +29,13 @@ struct AccountsTab: View {
Section {
AddAccountButtonView()
}
.background(Color(UIColor.systemGroupedBackground))
.systemGroupedBackground()
.listRowInsets(EdgeInsets())
}
}
}
.background(Color(UIColor.systemGroupedBackground))
.systemGroupedBackground()
}
}