Not accurate with tableview
pranavpari opened this issue · 3 comments
pranavpari commented
Hello,
I am using it inside the cell to display the rating, but its setting randomly. every time I scroll it display diff rating value.
dhomes commented
modify the func drawRatingBar() method to remove previously added views, they are just overlapping
worked for me
/// Draw Initial rating bar
func drawRatingBar() {
// dhomes : Modified to remove previously added stars
for v in self.subviews {
v.removeFromSuperview()
}
let unFilledView = getRatingView(withIcon: unFilledIcon)
filledView = getRatingView(withIcon: filledIcon)
addSubview(filledView)
addSubview(unFilledView)
}
pranavpari commented
OK thank I will try it.
EngrAhsanAli commented
The issue has been fixed in the library. Thanks for using this library!