|
|
@ -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) { |
|
|
|