damus

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

commit 510432bb98a62b3509b6d152cabd6995b66521bb
parent c4a9f2fdb27c4c337d7580a0a05d44082f025049
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Wed, 13 Sep 2023 21:07:52 +0000

ui: make blurred videos viewable by allowing blur to disappear once tapped

Closes: https://github.com/damus-io/damus/issues/1247
Changelog-Fixed: Make blurred videos viewable by allowing blur to disappear once tapped
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/NoteContentView.swift | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift @@ -26,7 +26,7 @@ struct NoteContentView: View { let damus_state: DamusState let event: NostrEvent - let show_images: Bool + @State var show_images: Bool let size: EventViewKind let preview_height: CGFloat? let options: EventViewOptions @@ -139,7 +139,9 @@ struct NoteContentView: View { ZStack { ImageCarousel(state: damus_state, evid: event.id, urls: artifacts.media) Blur() - .disabled(true) + .onTapGesture { + show_images = true + } } //.cornerRadius(10) }