1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

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>
This commit is contained in:
Bryan Montz 2023-09-10 15:01:07 -05:00 committed by William Casarin
parent 8dad8e6703
commit 0803594553

View File

@ -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()