Fix iOS compile error due to selection change

This commit is contained in:
Maurice Parker 2020-07-19 19:46:33 -05:00
parent 29386d74d6
commit feb2d2c9ab
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ struct TimelineView: View {
#else
List(timelineModel.timelineItems) { timelineItem in
ZStack {
TimelineItemView(width: proxy.size.width, timelineItem: timelineItem)
let selected = timelineModel.selectedArticleID == timelineItem.article.articleID
TimelineItemView(selected: selected, width: proxy.size.width, timelineItem: timelineItem)
NavigationLink(destination: ArticleContainerView(),
tag: timelineItem.article.articleID,
selection: $timelineModel.selectedArticleID) {