Skip to content
New issue

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

How to swipe cosmos to leave a rating inside a cell without swiping the cell #168

Open
lsamaria opened this issue Jul 14, 2020 · 1 comment

Comments

@lsamaria
Copy link

Please consider submitting the following information (if relevant):

• Library setup method: CocoaPods
• Version of the library. pod 'Cosmos', '~> 22.1'
• Xcode version. 11.5
• OS version. Example: iOS 13.5

I'm using a collectionView cell and inside of it I have the cosmos component. How can I swipe the cosmos to get a rating without worrying about swiping the cell?

For example if I try to swipe the cosmos to leave a rating, the cell swipes, I have no choice but to tap the cosmos. Tapping works fine but I like the swipe rating feature and don't want to lose it. I also don't want to lose the ability to swipe the cell meaning swiping the cell itself has nothing to do with swiping the cosmos to leave a rating.

My code is programmatic, I don't use storyboard at all.

@lsamaria
Copy link
Author

answer is here, just replace slider with cosmosView

https://stackoverflow.com/a/62925429/4833705

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant