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