| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- //
- // TYMProgressBarView.h
- // TYMProgressBarView
- //
- // Created by Yiming Tang on 13-6-7.
- // Copyright (c) 2013 - 2014 Yiming Tang. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- /**
- Progress bar similar to the one in iOS's launching screen.
- */
- @interface TYMProgressBarView : UIView
- ///---------------------------
- ///@name Managing the Progress
- ///---------------------------
- /**
- The current progress shown by the receiver.
-
- The current progress is represented by a floating-point value between `0.0` and `1.0`, inclusive, where `1.0` indicates
- the completion of the task. Values less than `0.0` and greater than `1.0` are pinned to those limits.
-
- The default value is `0.0`.
- */
- @property (nonatomic, assign) CGFloat progress;
- ///-------------------------------------
- /// @name Configuring the Appearance
- ///-------------------------------------
- /**
- The border width.
-
- The default is `2.0`.
- */
- @property (nonatomic, assign) CGFloat barBorderWidth UI_APPEARANCE_SELECTOR;
- /**
- The border color.
-
- @see defaultBarColor
- */
- @property (nonatomic, strong) UIColor *barBorderColor UI_APPEARANCE_SELECTOR;
- /**
- The inner border width.
-
- The default is `0.0`.
- */
- @property (nonatomic, assign) CGFloat barInnerBorderWidth UI_APPEARANCE_SELECTOR;
- /**
- The inner border color.
-
- The default is nil.
- */
- @property (nonatomic, strong) UIColor *barInnerBorderColor UI_APPEARANCE_SELECTOR;
- /**
- The inner padding.
-
- The default is `2.0`.
- */
- @property (nonatomic, assign) CGFloat barInnerPadding UI_APPEARANCE_SELECTOR;
- /**
- The fill color.
-
- @see defaultBarColor
- */
- @property (nonatomic, strong) UIColor *barFillColor UI_APPEARANCE_SELECTOR;
- /**
- The bar background color.
-
- The default is white.
- */
- @property (nonatomic, strong) UIColor *barBackgroundColor UI_APPEARANCE_SELECTOR;
- ///---------------
- /// @name Defaults
- ///---------------
- /**
- The default value of `barBorderColor` and `barFillColor`.
- */
- + (UIColor *)defaultBarColor;
- @end
|