Latest 0.1.6
Homepage https://github.com/garethpaul/iHeartRating
License MIT
Platforms ios 8.0
Authors

Logo

Simple Ratings View for iOS enabling you to use any image as a rating e.g. hearts, stars, pigeons etc. We extend UIView to make it very easy to add ratings to your app

iHeartRating

Getting Started

You want to add pod 'iHeartRating', '~> 0.1' to your Podfile:

target 'MyApp' do
  pod 'iHeartRating', '~> 0.1'
end

Sample Usage

Here is a sample ViewController :-

import iHeartRating
class ViewController: UIViewController, HeartRatingViewDelegate {

  override func viewDidLoad() {
        super.viewDidLoad()
  }

  func heartRatingView(ratingView: HeartRatingView, isUpdating rating:Float) {
      // do something while (rating) has been initiated
  }

  func heartRatingView(ratingView: HeartRatingView, didUpdate rating: Float) {
      // do something when (rating) object has been updates
  }

}

In addition here is a sample setup in a storyboard

storyboard

Latest podspec

{
    "name": "iHeartRating",
    "version": "0.1.6",
    "summary": "iHeartRating provides rating functionality for hearts or any image extends UIView",
    "description": "iHeartRating provides easy heart, star or any other image type ratings.nWe extend UIView to provide a simple easy rating.",
    "homepage": "https://github.com/garethpaul/iHeartRating",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Gareth Jones": "[email protected]"
    },
    "social_media_url": "http://twitter.com/gpj",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/garethpaul/iHeartRating.git",
        "tag": "0.1.6"
    },
    "source_files": "iHeartRating/*.{swift}"
}

Pin It on Pinterest

Share This