Pafgz / CardCarousel

Pure SwiftUI card carousel with a 3D effect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CardCarousel

Card carousel is an elegant SwiftUI slider compatible with Swift Package Manager

Loopping Not looping
carousel-loop carousel-no-loop

Setup

1. Import the library

import CardCarousel

2. Use the SwiftUI component

Carousel(items, id: \.self, isLooping: true, content: { item in
  Card(item: item)
})

Parameters

  • index : Binding data to set active item
  • sidesScaling: Size of previous and next card
  • isLooping: Allow carousel to loop
  • canMove: Allow swiping

About

Pure SwiftUI card carousel with a 3D effect

License:Apache License 2.0


Languages

Language:Swift 100.0%