Remove macOS navigate code that was messing up performance
This commit is contained in:
parent
797b8cd428
commit
6853535b96
|
@ -17,7 +17,6 @@ struct SidebarView: View {
|
|||
@EnvironmentObject private var refreshProgress: RefreshProgressModel
|
||||
@EnvironmentObject private var sceneModel: SceneModel
|
||||
@EnvironmentObject private var sidebarModel: SidebarModel
|
||||
@State var navigate = false
|
||||
|
||||
private let threshold: CGFloat = 80
|
||||
@State private var previousScrollOffset: CGFloat = 0
|
||||
|
@ -45,10 +44,6 @@ struct SidebarView: View {
|
|||
.buttonStyle(PlainButtonStyle())
|
||||
.help(sidebarModel.isReadFiltered ? "Show Read Feeds" : "Filter Read Feeds")
|
||||
}
|
||||
ZStack(alignment: .bottom) {
|
||||
NavigationLink(destination: TimelineContainerView(), isActive: $navigate) {
|
||||
EmptyView()
|
||||
}.hidden()
|
||||
List(selection: $sidebarModel.selectedFeedIdentifiers) {
|
||||
rows
|
||||
}
|
||||
|
@ -65,10 +60,6 @@ struct SidebarView: View {
|
|||
.transition(.move(edge: .bottom))
|
||||
}
|
||||
}
|
||||
.onChange(of: sidebarModel.selectedFeedIdentifiers) { value in
|
||||
navigate = !sidebarModel.selectedFeedIdentifiers.isEmpty
|
||||
}
|
||||
}
|
||||
#else
|
||||
ZStack(alignment: .top) {
|
||||
List {
|
||||
|
|
Loading…
Reference in New Issue