项目作者: skywinder

项目描述 :
Kit for building custom gauges + easy reproducible Apple's style ring gauges.
高级语言: Swift
项目地址: git://github.com/skywinder/GaugeKit.git
创建时间: 2015-06-19T09:59:47Z
项目社区:https://github.com/skywinder/GaugeKit

开源协议:MIT License

下载


Version
Build Status
Carthage compatible
language
License
Platform

GaugeKit

Kit for building custom gauges + easy reproducible Apple’s style ring gauges.


->

Example Usage

Open GaugeKit.xcworkspace and change the scheme to ‘Example’ and run Example project.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

GaugeKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

  1. source 'https://github.com/CocoaPods/Specs.git'
  2. platform :ios, '8.0'
  3. use_frameworks!
  4. pod "GaugeKit"

Carthage

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

  1. github "skywinder/GaugeKit" >= 0.2

Embedded Framework

Add GaugeKit as a submodule by opening the Terminal, cd-ing into your top-level project directory, and entering the following command:

  1. $ git submodule add https://github.com/skywinder/GaugeKit.git

Manually

If you prefer not to use either of the aforementioned dependency managers, you can simply add swift files into your project manually.

Features :sparkles:

Usage :rainbow:

  • Put on storyboard UIView, and set them class Gauge and module GaugeKit:

GaugeKit

  • Select type of gauge (property type in class or gaugeTypeInt for changes directly in Interface builder)

    1. - case `Circle`
    2. - case `Left`
    3. - case `Right`
    4. - case `Line`

Example:

GaugeKit
GaugeKit

IB Example:

GaugeKit

Requirements

  • iOS SDK 7.0 or later (iOS SDK 8.0 if you use it as a Framework)
  • Swift 1.2 and Xcode 6.3 or later
  • Swift 2.x.x is also supported!

Communication :speaker:

Bug reports, feature requests, patches, well-wishes are always welcome!

Contributing :octocat:

I’d love to see your ideas for improving this library.

The best way to contribute is by submitting a pull request.

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].










License

GaugeKit is available under the MIT license. See the LICENSE file for more info.