We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7efdbde commit bfcbcc6Copy full SHA for bfcbcc6
2 files changed
TGPControls/TGPCamelLabels7.h
@@ -46,5 +46,6 @@
46
@property (nonatomic, strong) UIColor * downFontColor;
47
48
@property (nonatomic, strong) NSArray * names; // Will dictate the number of ticks
49
+@property (nonatomic, assign) NSTimeInterval animationDuration;
50
51
@end
TGPControls/TGPCamelLabels7.m
@@ -60,7 +60,7 @@ - (void)setTicksDistance:(CGFloat)ticksDistance {
60
61
- (void)setValue:(NSUInteger)value {
62
_value = value;
63
- [self dockEffect:.15];
+ [self dockEffect:self.animationDuration];
64
}
65
66
- (void)setUpFontName:(NSString *)upFontName {
@@ -154,6 +154,8 @@ - (void)initProperties {
154
_dnLabels = [NSMutableArray array];
155
156
_lastValue = NSNotFound; // Never tapped
157
+ _animationDuration = 0.15;
158
+
159
[self layoutTrack];
160
161
0 commit comments