UIControl that mimics the behavior of the up vote widget in sites like Product Hunt. Written in Swift
Carthage is the recommended way to install UpvoteControl. Add the following to your Cartfile:
github "raulriera/UpvoteControl"
Subclass a UIView with UpvoteControl
class. Dig into the source code to find all the available options, everything is laid out nicely.
If you are using storyboards you can attach an IBAction to the .ValueChanged
event
@IBAction func valueDidChange(sender: UpvoteControl) {
print(sender.count)
}
Created by Raul Riera, @raulriera