ForEach(viewModel.bookPosts) { bookpost in
BookPostRowView(bookpost: bookpost)
}
ForEach(viewModel.posts(forFilter: self.selectedFilter)) { post in
PostRowView(post: post)
}
both of them have an order of timestamp, but with this code the book posts are all displayed on top of the postrow, as obvious. I need them to display in the said order but not giving priority to any of them.
New contributor
trevor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.