Patrefans
kavsoft from patreon
kavsoft patreon

SwiftUI 3.0 Snap Carousel Slider - Carousel List - Xcode 13 - WWDC 2021

🕑 Added 2021-07-31 21:07:25 +0000 UTC
SwiftUI 3.0 Snap Carousel Slider - Carousel List - Xcode 13 - WWDC 2021

Comments

Kavsoft

Until iOS 16, there was no way other than using custom views, but this can be achieved natively using the iOS 17 new APIs.

Kornel Krużewski

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.

Дмитрий Павлов

Thanks for the lesson, your implementation of the carousel helped a lot

Benny Chew

Is it possible to programmatically navigate to a certain card (index) with animation. Mutate the currentIndex state?

Rob Nash

The whole thing breaks if you have 25+

Eldin

Also, there are some performance issues, if you have more than 10 items. I think the better approach is with a scroll view.

Jan Sonnentag

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)


More Creators