diff --git a/TGPControls/TGPCamelLabels7.h b/TGPControls/TGPCamelLabels7.h index 96fbc5f..0e4ee6e 100644 --- a/TGPControls/TGPCamelLabels7.h +++ b/TGPControls/TGPCamelLabels7.h @@ -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 diff --git a/TGPControls/TGPCamelLabels7.m b/TGPControls/TGPCamelLabels7.m index 6ba884e..aa055bd 100644 --- a/TGPControls/TGPCamelLabels7.m +++ b/TGPControls/TGPCamelLabels7.m @@ -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]; }