Sort tags
This commit is contained in:
parent
4440b2ce0d
commit
f4b81e9823
@ -26,13 +26,11 @@ struct TagsListView: View {
|
||||
@State
|
||||
var selectedTag: Tag?
|
||||
|
||||
#warning("TODO: Resort tag list when name changes")
|
||||
var body: some View {
|
||||
NavigationSplitView {
|
||||
List(content.tags, selection: $selectedTag) { tag in
|
||||
List(content.tags.sorted(), selection: $selectedTag) { tag in
|
||||
Text(tag.localized(in: language).name)
|
||||
.tag(tag)
|
||||
|
||||
}
|
||||
} content: {
|
||||
if let selectedTag {
|
||||
|
Loading…
x
Reference in New Issue
Block a user