mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-26 18:04:44 +00:00
Sort lists alphabetically in ListAddAccountView (#943)
This commit is contained in:
parent
5436e8d3f9
commit
159bd74566
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ public struct ListAddAccountView: View {
|
||||||
public var body: some View {
|
public var body: some View {
|
||||||
NavigationStack {
|
NavigationStack {
|
||||||
List {
|
List {
|
||||||
ForEach(currentAccount.lists) { list in
|
ForEach(currentAccount.sortedLists) { list in
|
||||||
HStack {
|
HStack {
|
||||||
Toggle(list.title, isOn: .init(get: {
|
Toggle(list.title, isOn: .init(get: {
|
||||||
viewModel.inLists.contains(where: { $0.id == list.id })
|
viewModel.inLists.contains(where: { $0.id == list.id })
|
||||||
|
|
Loading…
Reference in a new issue