-
Notifications
You must be signed in to change notification settings - Fork 527
/
M13ProgressViewLetterpress.h
47 lines (43 loc) · 1.33 KB
/
M13ProgressViewLetterpress.h
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
36
37
38
39
40
41
42
43
44
45
46
47
//
// M13ProgressViewLetterpress.h
// M13ProgressSuite
//
// Created by Brandon McQuilkin on 4/28/14.
// Copyright (c) 2014 Brandon McQuilkin. All rights reserved.
//
#import "M13ProgressView.h"
typedef enum {
M13ProgressViewLetterpressPointShapeSquare,
M13ProgressViewLetterpressPointShapeCircle
} M13ProgressViewLetterpressPointShape;
@interface M13ProgressViewLetterpress : M13ProgressView
/**@name Properties*/
/**
The number of grid points in each direction.
*/
@property (nonatomic, assign) CGPoint numberOfGridPoints;
/**
The shape of the grid points.
*/
@property (nonatomic, assign) M13ProgressViewLetterpressPointShape pointShape;
/**
The amount of space between the grid points, as a percentage of the point's size.
*/
@property (nonatomic, assign) CGFloat pointSpacing;
/**
The size of the notch to carve out on one side.
*/
@property (nonatomic, assign) CGSize notchSize;
/**
The spring constant that defines the amount of "spring" the progress view has in its animation.
*/
@property (nonatomic, assign) CGFloat springConstant;
/**
The constant that determines how long the progress view "bounces" for.
*/
@property (nonatomic, assign) CGFloat dampingCoefficient;
/**
The constant that determines how much the springConstant and dampingCoefficent affect the animation.
*/
@property (nonatomic, assign) CGFloat mass;
@end