JWAutumn / ACarousel

A carousel view for SwiftUI | SwiftUI 旋转木马效果
MIT License
381 stars 78 forks source link

if feels like it's a bit hard to scroll through the carousel? #19

Open nimrodbens opened 1 year ago

nimrodbens commented 1 year ago

anyone else feels this way? is there any way to make it feel easier?

tomisacat commented 1 year ago

Modify ACarouselViewModel:

private func dragEnded(_ value: DragGesture.Value) {

    ....
    let dragThreshold: CGFloat = itemWidth / 3
    ....
}

change 3 to a bigger value to make dragThreshold smaller.