DZFiveStarBar
Five Star Bar
- How to use
- with code
let starbar = DZStarBar.starBarAt(CGPoint(x: 20, y: 50), Height: 40, StarCount: 5);
starbar.currentValue = 1;
starbar.displayOnly = false; // true: display only, false: can change value
starbar.addTarget(self, action: #selector(ViewController.onStarBarChanged), for: UIControlEvents.valueChanged); // will only work when displayOnly is false
starbar.canHalf = true; // display half star or not
self.view.addSubview(starbar);
- or use storyboard
Requirements
Installation
DZFiveStarBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DZFiveStarBar"
Author
darkzero, [email protected]
License
DZFiveStarBar is available under the MIT license. See the LICENSE file for more info.