Browse Source

Revert "ContentTimelineView inside a page tabView"

Noticed this was crashing

This reverts commit 85ba7bbed0.
post-button-style
William Casarin 2 years ago
parent
commit
d55a47a6a8
  1. 30
      damus/ContentView.swift

30
damus/ContentView.swift

@ -78,14 +78,17 @@ struct ContentView: View {
@Environment(\.colorScheme) var colorScheme
var PostingTimelineView: some View {
VStack {
TabView(selection: $filter_state) {
ContentTimelineView
.tag(FilterState.posts)
ContentTimelineView
.tag(FilterState.posts_and_replies)
VStack{
ZStack {
if let damus = self.damus_state {
TimelineView(events: $home.events, loading: $home.loading, damus: damus, show_friend_icon: false, filter: filter_event)
}
if privkey != nil {
PostButtonContainer {
self.active_sheet = .post
}
}
}
.tabViewStyle(.page(indexDisplayMode: .never))
}
.safeAreaInset(edge: .top) {
VStack(spacing: 0) {
@ -99,19 +102,6 @@ struct ContentView: View {
}
}
var ContentTimelineView: some View {
ZStack {
if let damus = self.damus_state {
TimelineView(events: $home.events, loading: $home.loading, damus: damus, show_friend_icon: false, filter: filter_event)
}
if privkey != nil {
PostButtonContainer {
self.active_sheet = .post
}
}
}
}
var FiltersView: some View {
VStack{
Picker("Filter State", selection: $filter_state) {

Loading…
Cancel
Save