Card carousel is an elegant SwiftUI slider compatible with Swift Package Manager
Loopping | Not looping |
---|---|
import CardCarousel
Carousel(items, id: \.self, isLooping: true, content: { item in
Card(item: item)
})
- index : Binding data to set active item
- sidesScaling: Size of previous and next card
- isLooping: Allow carousel to loop
- canMove: Allow swiping