scroll event ignored if the carousel view in the TabView and item view have tap gesture
fso-msrl opened this issue · 3 comments
fso-msrl commented
This is the sample structure:
TabView {
VStack {
ACarousel(items) { item in
ItemView(item)
.onTapGesture { "do something" }
}
}
VStack {...}
VStack {...}
VStack {...}
}
.tabViewStyle(.page(indexDisplayMode: .never))
I want to swipe the carousel item if i drag inside
trantran8 commented
Hi, I had this issue too, did you fix it?
fso-msrl commented
Hi, I had this issue too, did you fix it?
I cant fix it because the gesture is private, I cant set it to higher priority.
Now I used another one ACarousel instead of TabView
like this:
ACarousel(pages) { page in
VStack {
...some views
ACarousel(items) { item in
ItemView(item)
.onTapGesture { "do something" }
}
}
}
Seem works! hope it can help you first
trantran8 commented
Thank you, let me try