Deleted code that is dead because of recent navigation changes
This commit is contained in:
parent
ef6a74b8bd
commit
3b8db28f3d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue