We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Card Swiper doesn't snap card swipe correctly when we provide different sizes for cards using
func sizeForItem(verticalCardSwiperView: VerticalCardSwiperView, index: Int)
Steps to reproduce the behavior: Following steps are for ExampleViewController in project
private var contactsDemoData: [Contact] = [ Contact(name: "John Doe", age: 33, size: 500), Contact(name: "Chuck Norris", age: 78, size: 500), Contact(name: "Bill Gates", age: 62, size: 500), Contact(name: "Steve Jobs", age: 56, size: 300), Contact(name: "Barack Obama", age: 56, size: 300), Contact(name: "Mila Kunis", age: 34, size: 300), Contact(name: "Pamela Anderson", age: 50, size: 300), Contact(name: "Christina Anguilera", age: 37, size: 300), Contact(name: "Ed Sheeran", age: 23, size: 300), Contact(name: "Jennifer Lopez", age: 45, size: 300), Contact(name: "Nicki Minaj", age: 31, size: 300), Contact(name: "Tim Cook", age: 57, size: 300), Contact(name: "Satya Nadella", age: 50, size: 300) ]
func sizeForItem(verticalCardSwiperView: VerticalCardSwiperView, index: Int) -> CGSize { let contact = contactsDemoData[index] return CGSize(width: self.view.bounds.size.width, height: CGFloat(contact.size)) }
https://jmp.sh/KbBOXeR
iOS 13.6 - iPhone 11
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
@JoniVR any ideas on how to add support for cells with multiple heights?
It's not currently supported as I didn't consider it, feel free to open a Pull request though :)
No branches or pull requests
Bug Description
Card Swiper doesn't snap card swipe correctly when we provide different sizes for cards using
To Reproduce
Steps to reproduce the behavior: Following steps are for ExampleViewController in project
e.g.
Expected behavior
Video
https://jmp.sh/KbBOXeR
Environment
iOS 13.6 - iPhone 11
The text was updated successfully, but these errors were encountered: