Sort lists alphabetically in ListAddAccountView (#943)
This commit is contained in:
parent
5436e8d3f9
commit
159bd74566
|
@ -21,7 +21,7 @@ public struct ListAddAccountView: View {
|
|||
public var body: some View {
|
||||
NavigationStack {
|
||||
List {
|
||||
ForEach(currentAccount.lists) { list in
|
||||
ForEach(currentAccount.sortedLists) { list in
|
||||
HStack {
|
||||
Toggle(list.title, isOn: .init(get: {
|
||||
viewModel.inLists.contains(where: { $0.id == list.id })
|
||||
|
|
Loading…
Reference in New Issue