Add draft indicator, filter drafts, show issue count

This commit is contained in:
Christoph Hagen
2025-01-07 14:03:07 +01:00
parent 9d95e7d210
commit 508483071a
10 changed files with 124 additions and 32 deletions

View File

@ -31,7 +31,13 @@ struct PostListView: View {
.textFieldStyle(.roundedBorder)
.padding(.horizontal, 8)
List(filteredPosts, selection: $selectedPost) { post in
Text(post.title(in: language)).tag(post)
HStack {
Text(post.title(in: language))
Spacer()
if post.isDraft {
DraftIndicator()
}
}.tag(post)
}
}.onAppear {
if selectedPost == nil {