JWAutumn / ACarousel

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

dragGesture 超過所設置的高度 #4

Open Steven364 opened 3 years ago

Steven364 commented 3 years ago

我使用以下 Code: ACarousel(urls, id: \.self, index: $bannerIndex, spacing: 10, headspace: 10, sidesScaling: 0.8, isWrap: true, autoScroll: .active(3)) { url in BannerNetworkImage(urlString: url) .frame(height: 150) .cornerRadius(10) } .frame(height: 150) 但是滑動範圍超過了高度 150,可否修正呢? 因為這樣的話造成使用者不小心滑動到 (手沒在圖片上 依然可以滑動,似乎是全畫面手勢??)

例如我設置 150

但是在圖片的下緣 約高度 160 還是可滑動 .... !?

以上您的範例也可以重現

jason-jianghv commented 5 months ago

你好 请问这个问题有解决吗