SwiftUI 3.0 Snap Carousel Slider - Carousel List - Xcode 13 - WWDC 2021
Added 2021-07-31 21:07:25 +0000 UTC
Source Code For SwiftUI 3.0 Snap Carousel Slider - Carousel List - Xcode 13 - WWDC 2021.
NOTE: Updated Version Needs Xcode 15.
Download Code 👇
Until iOS 16, there was no way other than using custom views, but this can be achieved natively using the iOS 17 new APIs.
Kavsoft
2023-07-29 14:54:19 +0000 UTC
Is there another solution like Tabview? I'm only interested in seeing the previous and next tab. So that the user knows that it can be scrolled.
Kornel Krużewski
2023-07-28 12:00:08 +0000 UTC
Thanks for the lesson, your implementation of the carousel helped a lot
Дмитрий Павлов
2023-07-12 19:38:40 +0000 UTC
Is it possible to programmatically navigate to a certain card (index) with animation. Mutate the currentIndex state?
Benny Chew
2023-06-23 11:51:46 +0000 UTC
The whole thing breaks if you have 25+
Rob Nash
2023-06-10 09:26:24 +0000 UTC
Also, there are some performance issues, if you have more than 10 items. I think the better approach is with a scroll view.
Eldin
2022-04-12 17:11:47 +0000 UTC
Hihi,
I love these creative ideas and coding, but every now and then I have problems. They don't run properly in Xcode and on the iPhone. I have all the latest versions of Apple on it, so it's not that.
With this carousel, the swipe hacks and if the user leaves the finger on the content for a longer time, the content flickers back and forth and leaks.
Why is that?
Greetings Jan (j.sonnentag@twadoo.com)
Jan Sonnentag
2021-11-21 19:09:14 +0000 UTC