Creating Circular Carousel in SwiftUI

With the release of the .visualEffect(), .scrollTransition(), and .scrollTargetBehaviour() modifiers in SwiftUI on iOS 17, it is now easy to create a custom carousel like the one shown in the GIF below.
notion image
SwiftUI has received numerous updates at WWDC 23, particularly in the ScrollView. It now includes additional features such as Snap Interval, ScrollPosition, Custom Scroll Target Behavior, and more.
To learn more about the SwiftUI updates at WWDC 23, check out my What's New in SwiftUI Video.
For more information about the implementation, please refer to the YouTube video.
Video preview
 

Support meYour support would really help us on creating new videos about SwiftUI Everyday. Thank you.

Copyright © Kavsoft 2020 - 2023