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

allowEdit = false seems to have no effect? #4

Open
netsmith opened this issue Feb 26, 2020 · 1 comment
Open

allowEdit = false seems to have no effect? #4

netsmith opened this issue Feb 26, 2020 · 1 comment

Comments

@netsmith
Copy link

I have a place in my ui where I want to show the star rating but not allow users to change it so I set this setting to false but I still seem to be able to interact with the rating?

@netsmith
Copy link
Author

Worked out what the problem was, touchesMoved did not check for !allowEdit - you need to add these lines at the top

override public func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
    if !allowEdit
    {
        return
    }

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