ACarousel icon indicating copy to clipboard operation
ACarousel copied to clipboard

scroll event ignored if the carousel view in the TabView and item view have tap gesture

Open fso-msrl opened this issue 2 years ago • 3 comments

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

fso-msrl avatar Jul 08 '22 10:07 fso-msrl

Hi, I had this issue too, did you fix it?

trantran8 avatar Jul 15 '22 07:07 trantran8

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

fso-msrl avatar Jul 15 '22 07:07 fso-msrl

Thank you, let me try

trantran8 avatar Jul 15 '22 09:07 trantran8