单军华
2018-07-11 acdf41fa3b32b628d9d7bba1f975060567dad3d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
//  M13ProgressViewRadiative.h
//  M13ProgressSuite
//
//  Created by Brandon McQuilkin on 3/13/14.
//  Copyright (c) 2014 Brandon McQuilkin. All rights reserved.
//
 
#import "M13ProgressView.h"
 
typedef enum {
    M13ProgressViewRadiativeShapeCircle,
    M13ProgressViewRadiativeShapeSquare
} M13ProgressViewRadiativeShape;
 
/**A progress view that displays progress via "Radiative" rings around a central point.*/
@interface M13ProgressViewRadiative : M13ProgressView
 
/**@name Appearance*/
/**The point where the wave fronts originate from. The point is defined in percentages, top left being {0, 0}, and the bottom right being {1, 1}.*/
@property (nonatomic, assign) CGPoint originationPoint;
/**The distance of the last ripple from the origination point.*/
@property (nonatomic, assign) CGFloat ripplesRadius;
/**The width of the ripples.*/
@property (nonatomic, assign) CGFloat rippleWidth;
/**The shape of the radiative ripples*/
@property (nonatomic, assign) M13ProgressViewRadiativeShape shape;
/**The number of ripples the progress view displays.*/
@property (nonatomic, assign) NSUInteger numberOfRipples;
/**The number of ripples the indeterminate pulse animation is.*/
@property (nonatomic, assign) NSUInteger pulseWidth;
/**The direction of the progress. If set to yes, the progress will be outward, of set to no, it will be inwards.*/
@property (nonatomic, assign) BOOL progressOutwards;
 
@end