Skip to content
Simple Ratings View for iOS enabling you to use any image as a rating e.g. hearts, stars, pigeons etc.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
example/SampleApp
iHeartRating.xcodeproj
iHeartRating
iHeartRatingTests
screenshots
.gitignore
.travis.yml
LICENSE
README.md
build.sh
iHeartRating.podspec

README.md

Build Status

Logo

iHeartRating

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

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

You can’t perform that action at this time.