ios – How to create an Infinite Looping Snap Carousel View using SwiftUI?


I’ve experimented with various approaches, but I’m still struggling to understand how to implement an infinite looping carousel view using only native SwiftUI tools, excluding UIKit. Is it even possible to achieve such an effect?

enter image description here

I’ve explored libraries and came across iCarousel, which offers different types, specifically, I’m interested in achieving the iCarouselTypeLinear effect. Has anyone encountered a similar challenge and successfully addressed it using SwiftUI alone? I would appreciate any guidance, advice, or code examples!
The most difficult thing I can’t do is to make the neighboring elements visible as well.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img