Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AliThink/HorizontalProgress
Simple horizontal progress bar with animation
https://github.com/AliThink/HorizontalProgress
Last synced: 13 days ago
JSON representation
Simple horizontal progress bar with animation
- Host: GitHub
- URL: https://github.com/AliThink/HorizontalProgress
- Owner: AliThink
- License: mit
- Created: 2015-10-29T02:52:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T18:41:17.000Z (almost 8 years ago)
- Last Synced: 2024-07-18T18:53:25.597Z (4 months ago)
- Language: Objective-C
- Size: 133 KB
- Stars: 182
- Watchers: 7
- Forks: 33
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HorizontalProgress
Simple horizontal progress bar with animation
## WhatUse 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 Podfilepod 'HorizontalProgress'
## Usage
```objective-c
//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;
```
## LicenseHorizontalProgress is available under the MIT license. See the LICENSE file for more info.
---
README(Chinese)
==========## HorizontalProgress 是什么
可以用它很方便的生成横向带节点的进度条。
## HorizontalProgress提供了哪些功能
* 支持Fill动画
* UI可定制## HorizontalProgress 使用配置
```objective-c
//未达标的填充颜色
@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 文件来获得更多信息。