Skip to content

Latest commit

 

History

History
executable file
·
45 lines (33 loc) · 1.08 KB

README.md

File metadata and controls

executable file
·
45 lines (33 loc) · 1.08 KB

LCStarRatingView

badge-pod badge-languages badge-platforms badge-mit

Features

  • No images.
  • It supports multiple UI Setting.
  • It supports gestures and call back block.
  • It supports counting type switch.
  • It supports XIB.

Counting type

/**
 * LCStarRatingViewCountingTypeInteger [0, 1, 2, 3, 4, 5]
 * LCStarRatingViewCountingTypeFloat [0, 0.1, ... 0.4, ... 1, 1.1, ... 4.9, 5]
 * LCStarRatingViewCountingTypeHalfCutting [0, 0.5, 1, 1.5, 2, ...]
 */

Preview (GIF)

image

Call back

ratingView.progressDidChangedByUser = ^(CGFloat progress){
        
    // to do something.
};

Update

  • 1.01
    • Fix bugs and supports XIB.
  • 1.0
    • First commit.