Skip to content

Commit

Permalink
Fixed #6 - Publish the animation duration for TGPCamelLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftArchitect committed Mar 4, 2015
1 parent 7efdbde commit bfcbcc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions TGPControls/TGPCamelLabels7.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion TGPControls/TGPCamelLabels7.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ - (void)setTicksDistance:(CGFloat)ticksDistance {

- (void)setValue:(NSUInteger)value {
_value = value;
[self dockEffect:.15];
[self dockEffect:self.animationDuration];
}

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

_lastValue = NSNotFound; // Never tapped
_animationDuration = 0.15;

[self layoutTrack];
}

Expand Down

0 comments on commit bfcbcc6

Please sign in to comment.