Fixed iterating over banks so that ForEach is able to handle dynamic changes (e.g. when an account got added)
This commit is contained in:
parent
341b68fec1
commit
338995e671
|
@ -15,8 +15,8 @@ struct AccountsTab: View {
|
||||||
Form {
|
Form {
|
||||||
AllBanksListItem(banks: data.banks)
|
AllBanksListItem(banks: data.banks)
|
||||||
|
|
||||||
ForEach(0 ..< data.banks.count) { bankIndex in
|
ForEach(data.banks) { bank in
|
||||||
BankListItem(bank: self.data.banks[bankIndex])
|
BankListItem(bank: bank)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue