Sorts skills specifically for the EditSkills view, but also more generally when creating a MonsterViewModel.

This commit is contained in:
2021-03-21 18:28:04 -07:00
parent 7073e3d952
commit 0299213dfa
3 changed files with 9 additions and 2 deletions

View File

@@ -33,6 +33,9 @@ struct EditSkills: View {
}
)
})
.onAppear(perform: {
monsterViewModel.skills = monsterViewModel.skills.sorted()
})
}
}