DZFiveStarBar 0.1.0

DZFiveStarBar 0.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2019
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Hu YuHua.



  • By
  • darkzero

DZFiveStarBar

CI Status Version License Platform

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.