evgenyneu / Cosmos

A star rating control for iOS/tvOS written in Swift
MIT License
2.19k stars 368 forks source link

Set rating on tap #19

Closed JBenzie closed 8 years ago

JBenzie commented 8 years ago

I may be doing something wrong, but currently I can only set the rating by touching and sliding from left to right. I cannot simply tap a star to set the rating. If this is possible, how is it implemented?

Thanks, Jerry

evgenyneu commented 8 years ago

Hi Jerry, this is interesting. The rating should change either on tap or swipe, it should not matter. Do you have this problem in the demo app of this repository as well?

JBenzie commented 8 years ago

I could have easily missed something in my implementation. I'll give the demo app a try and go back over my code. I just wanted to verify that this was possible.

Thank you

mnimants commented 6 years ago

Hi!

I'm facing the problem (or maybe it's intended behaviour?) that ratings only update on either swipe or long tap - I would like it to update on just normal tap. Should it be like that?

mnimants commented 6 years ago

The problem was that one of the superviews had uitapgesturerecognizer and cosmosview wasn't receiving taps.