views: allow embeddable views at top of timeline

This allows you to put stuff at the top of a timeline inside the scroll
view. We could also remove the scrollview from the timeline
eventually... but this works for now.
This commit is contained in:
William Casarin
2023-07-13 06:50:21 -07:00
parent 7123b225a1
commit c0f9b0a8c0
4 changed files with 21 additions and 7 deletions

View File

@@ -142,7 +142,7 @@ struct ContentView: View {
func contentTimelineView(filter: (@escaping (NostrEvent) -> Bool)) -> some View {
ZStack {
if let damus = self.damus_state {
TimelineView(events: home.events, loading: .constant(false), damus: damus, show_friend_icon: false, filter: filter)
TimelineView<AnyView>(events: home.events, loading: .constant(false), damus: damus, show_friend_icon: false, filter: filter)
}
}
}