Skip to content

Simple Ratings View for iOS enabling you to use any image as a rating e.g. hearts, stars, pigeons etc.

License

Notifications You must be signed in to change notification settings

garethpaul/iHeartRating

Repository files navigation

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

About

Simple Ratings View for iOS enabling you to use any image as a rating e.g. hearts, stars, pigeons etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published