Latest 1.1.0
Homepage https://github.com/yuexygoodman/GMStarView
License MIT
Platforms ios 8.0
Frameworks UIKit

这是一个简单的用于展示类似于用户评分这样的功能的UI控件。
可自定义前景图、背景图
支持浮点型数据

    let starView=GMStarView()

    //starView.count=6 默认是5

    //starView.padding=UIEdgeInsetsMake(5, 5, 5, 5) 默认是UIEdgeInsets.zero

    //starView.starFImage=UIImage(named: "your image name") 提供了默认图标

    //starView.starBImage=UIImage(named: "your image name") 提供了默认图标

    starView.gain=3.5

Latest podspec

{
    "name": "GMStarView",
    "version": "1.1.0",
    "summary": "A custom view used to show star level.",
    "description": "You can use this view to show star level in iOS Apps,it supports float value,For example,you may gain 4.5 star level.",
    "homepage": "https://github.com/yuexygoodman/GMStarView",
    "license": "MIT",
    "authors": "Good Man",
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.1",
    "source": {
        "git": "https://github.com/yuexygoodman/GMStarView.git",
        "tag": "1.1.0"
    },
    "source_files": "GMStarView/*.swift",
    "resources": "GMStarView/*.bundle",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This