From 08035945535d94c8efbd136c97a92a85361836af Mon Sep 17 00:00:00 2001 From: Bryan Montz Date: Sun, 10 Sep 2023 15:01:07 -0500 Subject: [PATCH] ui: make ImageView's tab indicator dots tappable Changelog-Changed: Make carousel tab dots tappable Signed-off-by: Bryan Montz Signed-off-by: William Casarin --- damus/Views/Images/ImageView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/damus/Views/Images/ImageView.swift b/damus/Views/Images/ImageView.swift index 850dc583..a2cea82f 100644 --- 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()