damus

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

commit 08035945535d94c8efbd136c97a92a85361836af
parent 8dad8e67033b6bbe04bc1f11048f2ebab107b85b
Author: Bryan Montz <bryanmontz@me.com>
Date:   Sun, 10 Sep 2023 15:01:07 -0500

ui: make ImageView's tab indicator dots tappable

Changelog-Changed: Make carousel tab dots tappable
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/Images/ImageView.swift | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/damus/Views/Images/ImageView.swift b/damus/Views/Images/ImageView.swift @@ -24,6 +24,9 @@ struct ImageView: View { Capsule() .fill(index == selectedIndex ? Color(UIColor.label) : Color.secondary) .frame(width: 7, height: 7) + .onTapGesture { + selectedIndex = index + } } } .padding()