raulriera / Upvotecontrol
Licence: mit
UIControl for up vote widgets found in Product Hunt and Reddit
Stars: ✭ 52
Programming Languages
swift
15916 projects
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].