Move settings + generation to sheets
This commit is contained in:
@ -73,15 +73,12 @@ struct PostListView: View {
|
||||
.textFieldStyle(.roundedBorder)
|
||||
.padding(.horizontal, 8)
|
||||
List(filteredAndSortedPosts) { post in
|
||||
PostListItem(post: post)
|
||||
.listRowBackground(RoundedRectangle(cornerRadius: 5)
|
||||
.fill(selection.post == post ? Color.blue : Color.clear)
|
||||
.padding(.horizontal, 10)
|
||||
)
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture {
|
||||
selection.post = post
|
||||
}
|
||||
SelectableListItem(selected: selection.post == post) {
|
||||
PostListItem(post: post)
|
||||
}
|
||||
.onTapGesture {
|
||||
selection.post = post
|
||||
}
|
||||
}
|
||||
}.onAppear {
|
||||
if selection.post == nil, let first = content.posts.first {
|
||||
|
Reference in New Issue
Block a user