Giter Club home page Giter Club logo

fdratingview's Introduction

FDRatingView

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

fdratingview's People

Contributors

felixsfd avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

matteocrippa

fdratingview's Issues

Different styles

There should be a possiblity to select a style, because at the moment, you can only use stars to display the rating. Possible other Styles could be:

  • Squares
  • Hearts
  • UIProgressView
  • ... (Ideas are welcome)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.