/UpvoteControl

UIControl for up vote widgets found in Product Hunt and Reddit

Primary LanguageSwiftMIT LicenseMIT

UpvoteControl

UIControl that mimics the behavior of the up vote widget in sites like Product Hunt. Written in Swift

Installation

Carthage is the recommended way to install UpvoteControl. Add the following to your Cartfile:

github "raulriera/UpvoteControl"

Usage:

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)
}

About:

Created by Raul Riera, @raulriera