StarReview icon indicating copy to clipboard operation
StarReview copied to clipboard

allowEdit = false seems to have no effect?

Open netsmith opened this issue 5 years ago • 1 comments

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 avatar Feb 26 '20 15:02 netsmith

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
    }

netsmith avatar Feb 26 '20 16:02 netsmith