move more stuff out of contentview

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-05-19 08:19:18 -07:00
parent 874d15df45
commit e464a86282
2 changed files with 15 additions and 14 deletions

View File

@@ -124,25 +124,14 @@ struct ContentView: View {
}
}
var PostButtonContainer: some View {
VStack {
Spacer()
HStack {
Spacer()
PostButton() {
self.active_sheet = .post
}
}
}
}
var PostingTimelineView: some View {
ZStack {
if let damus = self.damus_state {
TimelineView(events: $friend_events, damus: damus)
}
PostButtonContainer
PostButtonContainer {
self.active_sheet = .post
}
}
}