Using now systemGroupedBackground()
This commit is contained in:
parent
974d427e1a
commit
b3dd944ce5
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue