Fixed #6 - Publish the animation duration for TGPCamelLabels
This commit is contained in:
parent
7efdbde4b8
commit
bfcbcc6a81
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue