Fixed #6 - Publish the animation duration for TGPCamelLabels

This commit is contained in:
arquebuse 2015-03-04 12:22:45 -08:00
parent 7efdbde4b8
commit bfcbcc6a81
2 changed files with 4 additions and 1 deletions

View File

@ -46,5 +46,6 @@
@property (nonatomic, strong) UIColor * downFontColor;
@property (nonatomic, strong) NSArray * names; // Will dictate the number of ticks
@property (nonatomic, assign) NSTimeInterval animationDuration;
@end

View File

@ -60,7 +60,7 @@
- (void)setValue:(NSUInteger)value {
_value = value;
[self dockEffect:.15];
[self dockEffect:self.animationDuration];
}
- (void)setUpFontName:(NSString *)upFontName {
@ -154,6 +154,8 @@
_dnLabels = [NSMutableArray array];
_lastValue = NSNotFound; // Never tapped
_animationDuration = 0.15;
[self layoutTrack];
}