Latest 0.1.3
Homepage https://github.com/FelixSFD/FDRatingView
License Apache License, Version 2.0
Platforms ios 8.0
Authors

Requirements

FDRatingView requires Swift 3.0 and Xcode 8.

Installation

CocoaPods

Use pod 'FDRatingView' or pod 'FDRatingView', :git => 'https://github.com/FelixSFD/FDRatingView.git' to install this pod.

Manual Installation

Copy the content of the folder FDRatingView (except info.plist!) to your project.

Usage

To use FDRatingView, you have to import the module:

import FDRatingView

Then initialize the Object with one of the available initializers and add the view as subview to an UIView.

Example 1

Screenshot 5 Stars

let ratingView = FDRatingView(frame: CGRect(32, 32, 16, 16), style: .star, numberOfStars: 5, fillValue: 2.33, color: .red, lineWidth:0.7, spacing:3.0)
view.addSubview(ratingView)

Example 2

Screenshot 3 Stars

let ratingView = FDRatingView(frame: CGRect(32, 32, 16, 16), style: .star, numberOfStars: 3, fillValue: 3, color: .black)
view.addSubview(ratingView)

Use pod 'FDRatingView', :git => 'https://github.com/FelixSFD/FDRatingView.git' to install this pod

Latest podspec

{
    "name": "FDRatingView",
    "version": "0.1.3",
    "summary": "FDRatingView is a subclass of UIView that can easily display a rating of something.",
    "description": "FDRatingView is an UIView that can easily display a rating of something. It is highly customizeable and on iOS, users can even interact with it.",
    "homepage": "https://github.com/FelixSFD/FDRatingView",
    "screenshots": [
        "http://i.imgur.com/WlxcJty.png",
        "http://i.imgur.com/cNZmnl3.png"
    ],
    "license": "Apache License, Version 2.0",
    "authors": {
        "Felix Deil": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/FelixSFD/FDRatingView.git",
        "tag": "0.1.3"
    },
    "source_files": "Shared/**/*.{swift,h}",
    "ios": {
        "source_files": "FDRatingView/**/*.{swift,h}"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This