Coder Social home page Coder Social logo

horizontalprogress's Introduction

HorizontalProgress

Simple horizontal progress bar with animation

What

Use it you can make a horizontal progress bar with tip textlabel easily.

Features

  • Animation support
  • Interface customization

CocoaPods

To use ImageCenterButton add the following to your Podfile

pod 'HorizontalProgress'

Usage

//Color of progress unachieved
@property(nonatomic, copy) UIColor *unachievedColor;
//Color of progress achieved
@property(nonatomic, copy) UIColor *achievedColor;
//Maximum progress point radius
@property CGFloat pointMaxRadius;
//Maximum progress line height
@property NSUInteger lineMaxHeight;
//Current progress level
@property NSInteger currentLevel;
//Current progress animation duration
@property CFTimeInterval animationDuration;
//Tip label position relative to progress line
@property ProgressLevelTextPosition textPosition;

//Array contained strings of progress tip label
//NSString elements only
@property(nonatomic, copy) NSArray *progressLevelArray;

//Progress fill animation start
- (void)startAnimation;

License

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


README(Chinese)

HorizontalProgress 是什么

可以用它很方便的生成横向带节点的进度条。

HorizontalProgress提供了哪些功能

  • 支持Fill动画
  • UI可定制

HorizontalProgress 使用配置

//未达标的填充颜色
@property(nonatomic, copy) UIColor *unachievedColor;
//已达标的填充颜色
@property(nonatomic, copy) UIColor *achievedColor;
//节点的最大半径
@property CGFloat pointMaxRadius;
//线条的最大高度
@property NSUInteger lineMaxHeight;
//当前的达标等级
@property NSInteger currentLevel;
//动画的执行时长
@property CFTimeInterval animationDuration;
//节点提示标签相对于线条的显示位置
@property ProgressLevelTextPosition textPosition;

//标签文本NSString类型数组
@property(nonatomic, copy) NSArray *progressLevelArray;

//填充动画触发方法
- (void)startAnimation;

CocoaPods 支持

你可以在 Podfile 中加入下面一行代码来使用HorizontalProgress

pod 'HorizontalProgress'

协议

HorizontalProgress 被许可在 MIT 协议下使用。查阅 LICENSE 文件来获得更多信息。

horizontalprogress's People

Contributors

alithink avatar

Watchers

Ashraf Hussain avatar

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.