Sort lists alphabetically in ListAddAccountView (#943)

This commit is contained in:
David Davies-Payne 2023-02-19 19:25:09 +13:00 committed by GitHub
parent 5436e8d3f9
commit 159bd74566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 })