Deleted code that is dead because of recent navigation changes

This commit is contained in:
Maurice Parker 2020-07-20 01:36:19 -05:00
parent ef6a74b8bd
commit 3b8db28f3d
1 changed files with 4 additions and 10 deletions

View File

@ -11,7 +11,6 @@ import SwiftUI
struct TimelineView: View {
@EnvironmentObject private var timelineModel: TimelineModel
@State var navigate = true
@ViewBuilder var body: some View {
GeometryReader { proxy in
@ -36,14 +35,9 @@ struct TimelineView: View {
.buttonStyle(PlainButtonStyle())
.help(timelineModel.isReadFiltered ?? false ? "Show Read Articles" : "Filter Read Articles")
}
ZStack {
NavigationLink(destination: ArticleContainerView(), isActive: $navigate) {
EmptyView()
}.hidden()
List(timelineModel.timelineItems, selection: $timelineModel.selectedArticleIDs) { timelineItem in
let selected = timelineModel.selectedArticleIDs.contains(timelineItem.article.articleID)
TimelineItemView(selected: selected, width: proxy.size.width, timelineItem: timelineItem)
}
List(timelineModel.timelineItems, selection: $timelineModel.selectedArticleIDs) { timelineItem in
let selected = timelineModel.selectedArticleIDs.contains(timelineItem.article.articleID)
TimelineItemView(selected: selected, width: proxy.size.width, timelineItem: timelineItem)
}
}
.navigationTitle(Text(verbatim: timelineModel.nameForDisplay))