Skip to content

Commit bfcbcc6

Browse files
Fixed #6 - Publish the animation duration for TGPCamelLabels
1 parent 7efdbde commit bfcbcc6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

TGPControls/TGPCamelLabels7.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@
4646
@property (nonatomic, strong) UIColor * downFontColor;
4747

4848
@property (nonatomic, strong) NSArray * names; // Will dictate the number of ticks
49+
@property (nonatomic, assign) NSTimeInterval animationDuration;
4950

5051
@end

TGPControls/TGPCamelLabels7.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ - (void)setTicksDistance:(CGFloat)ticksDistance {
6060

6161
- (void)setValue:(NSUInteger)value {
6262
_value = value;
63-
[self dockEffect:.15];
63+
[self dockEffect:self.animationDuration];
6464
}
6565

6666
- (void)setUpFontName:(NSString *)upFontName {
@@ -154,6 +154,8 @@ - (void)initProperties {
154154
_dnLabels = [NSMutableArray array];
155155

156156
_lastValue = NSNotFound; // Never tapped
157+
_animationDuration = 0.15;
158+
157159
[self layoutTrack];
158160
}
159161

0 commit comments

Comments
 (0)