Open yeonpark333 opened 4 years ago
Hi @yeonpark333, thanks for reporting, it must be a bug in Cosmos because tapping should change the stars see demo app.
Is it because i put the cosmos in collectionview?
Probably, the demo app includes a screen with Cosmos in a table view, which is similar to collection view.
Have you tried this:
https://github.com/evgenyneu/Cosmos/wiki/Using-Cosmos-in-a-scroll-view
to make it work in tableview, simply add this in cell
let gestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(dummy))
gestureRecognizer.cancelsTouchesInView = false
addGestureRecognizer(gestureRecognizer)
I am trying to make my star rating get the rate by tapping, not by dragging for user experience. But I cannot find any code for this. Is there anyone who can help me? Thank you in advance!