damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit ea50f9214a4d4fd03b00cc0aad0000c742849ff4
parent 6c8cf8421c702d8a8cbf8bdee61541f679c09c30
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  4 Jul 2023 13:48:36 -0700

Switch to navigation stack in BuilderEventView

Diffstat:
Mdamus/Views/Events/BuilderEventView.swift | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/damus/Views/Events/BuilderEventView.swift b/damus/Views/Events/BuilderEventView.swift @@ -70,12 +70,13 @@ struct BuilderEventView: View { var body: some View { VStack { if let event { - let ev = event.get_inner_event(cache: damus.events) ?? event - let thread = ThreadModel(event: ev, damus_state: damus) - NavigationLink(value: Route.Thread(thread: thread)) { - EventView(damus: damus, event: event, options: .embedded) - .padding([.top, .bottom], 8) - }.buttonStyle(.plain) + EventView(damus: damus, event: event, options: .embedded) + .padding([.top, .bottom], 8) + .onTapGesture { + let ev = event.get_inner_event(cache: damus.events) ?? event + let thread = ThreadModel(event: ev, damus_state: damus) + damus.nav.push(route: .Thread(thread: thread)) + } } else { ProgressView().padding() }