All Projects → chenjie1219 → Starrate

chenjie1219 / Starrate

swift电商五星评价,星星评分控件,支持自定义数量、拖拽、间隔、设置最小星星数等操作

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Starrate

Laravel Love
Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?
Stars: ✭ 822 (+867.06%)
Mutual labels:  star, rating, rate
Laravel Reactions
Laravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.
Stars: ✭ 58 (-31.76%)
Mutual labels:  star, rating, rate
Raty
🌟 Raty - A Star Rating Plugin
Stars: ✭ 2,292 (+2596.47%)
Mutual labels:  star, rating
rater-js
Star rating widget for the browser. Unlimited number of stars. No dependencies. No Jquery required.
Stars: ✭ 66 (-22.35%)
Mutual labels:  rating, star
react-star-ratings
A customizable svg star rating component for selecting x stars or visualizing x stars
Stars: ✭ 128 (+50.59%)
Mutual labels:  rating, star
Mgstarratingview
MGStarRatingView is a view for rating.
Stars: ✭ 70 (-17.65%)
Mutual labels:  star, rating
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (+29.41%)
Mutual labels:  star, rating
rating
⭐ A true Bayesian rating system with scope and cache enabled
Stars: ✭ 49 (-42.35%)
Mutual labels:  rating, rate
Laravel Likeable
Rate Eloquent models with Likes and Dislikes in Laravel. Development moved to Laravel Love package!
Stars: ✭ 95 (+11.76%)
Mutual labels:  rating, rate
Smart App Rate
An Android library that encourages users to rate the app on the Google Play.
Stars: ✭ 609 (+616.47%)
Mutual labels:  rating, rate
React Native Star Rating
A React Native component for generating and displaying interactive star ratings
Stars: ✭ 724 (+751.76%)
Mutual labels:  star, rating
Yii2 Widget Rating
A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)
Stars: ✭ 47 (-44.71%)
Mutual labels:  star, rating
Ngx Bar Rating
Angular Bar Rating
Stars: ✭ 146 (+71.76%)
Mutual labels:  rating, rate
Rateit.js
Rating plugin for jQuery. Fast, Progressive enhancement, touch support, icon-font support, highly customizable, unobtrusive JavaScript (using HTML5 data-* attributes), RTL support, supports as many stars as you'd like, and also any step size.
Stars: ✭ 146 (+71.76%)
Mutual labels:  star, rating
Androidrate
AndroidRate is a library to help you promote your Android app by prompting users to rate the app after using it for a few days.
Stars: ✭ 117 (+37.65%)
Mutual labels:  rating, rate
Material-Smart-Rating
😍⭐⭐Material Smart Rating App - An Android library that encourages users to rate the app on Google Play.⭐⭐😘
Stars: ✭ 30 (-64.71%)
Mutual labels:  rating, rate
Andratingbar
A RatingBar library for android, you can customize size ,color ,spacing and image easily!Support right to left。效果可以参看:https://juejin.im/post/6844904143220391949
Stars: ✭ 582 (+584.71%)
Mutual labels:  star, rating
Awesomstar
Awesome (star)rating system with PHP, MySQL and pure JavaScript.
Stars: ✭ 15 (-82.35%)
Mutual labels:  star, rating
Bootstrap Star Rating
A simple yet powerful JQuery star rating plugin with fractional rating support.
Stars: ✭ 985 (+1058.82%)
Mutual labels:  star, rating
Smileyrating
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon.
Stars: ✭ 1,038 (+1121.18%)
Mutual labels:  rating

Swift Carthage Compatible Platform

StarRate

主要内容的介绍

  • 进行评分(支持点击,滑动,最少星星数设置)

  • 展示评分

  • 类型选择(整颗星,半颗星,部分星星)

Requirements

  • Swift 5.0
  • iOS 9.0.0+
  • Xcode 10.2

Installation

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

To integrate StarRate into your Xcode project using Carthage, specify it in your Cartfile:

github "chenjie1219/StarRate"

Run carthage update to build the framework and drag the built StarRateView.framework into your Xcode project.

Manually

Just download the project, and drag and drop the "StarRateView" folder in your project.


Usage

1.创建星级视图(可进行评分)

/// 创建视图对象(totalStarCount:总星星数量, currentStarCount:当前星星数, starSpace:星星的间隔)
let starView = StarRateView(frame: CGRect(x: 0, y: 0, width: 120, height: 20),totalStarCount: 5 ,currentStarCount: 0 ,starSpace: 5)

/// 显示星级视图(type:星星类型, isPanEnable:是否可滑动评分, leastStar:评分的最少星星数) 
starView.show(type: .default, isPanEnable: true, leastStar: 0) { (score) in
    /// 评分后的回调方法
    <#code#>
}

2.创建星级视图(不可评分,仅展示当前评分)

/// 创建视图对象(totalStarCount:总星星数量, currentStarCount:当前星星数, starSpace:星星的间隔)
let starView = StarRateView(frame: CGRect(x: 0, y: 0, width: 120, height: 20),totalStarCount: 5 ,currentStarCount: 3 ,starSpace: 5)

/// 关闭用户手势操作,默认是开启的(关闭后不可点击,不可滑动,仅用来显示当前评分)
starView.isUserInteractionEnabled = false//不支持用户手势操作

效果图

1

Author

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].