Skip to content

Commit

Permalink
Merge remote-tracking branch 'chargemap/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
spromicky committed Jun 18, 2020
2 parents 5c5be77 + c377afb commit fc03113
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion StepSlider.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "StepSlider"
s.version = "1.6.0"
s.version = "1.7.0"
s.summary = "StepSlider its custom implementation of slider such as UISlider for preset values. Its based on drawing directly on CAShapeLayer."
s.homepage = "https://github.com/spromicky/StepSlider"
s.screenshots = "https://github.com/spromicky/StepSlider/blob/master/screenshots/example.gif?raw=true"
Expand Down
3 changes: 2 additions & 1 deletion StepSlider/source/StepSlider/StepSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ - (void)layoutLayersAnimated:(BOOL)animated
CGFloat sliderDiameter = self.sliderCircleRadius * 2.f;

CGPoint oldPosition = _sliderCircleLayer.position;
CGPathRef oldPath = _trackLayer.path;
CAShapeLayer * trackLayerCopy = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:_trackLayer]];
CGPathRef oldPath = trackLayerCopy.path;

CGFloat labelsY = self.labelOrientation ? (self.bounds.size.height - totalHeight) / 2.f : (CGRectGetMaxY(contentFrame) + self.labelOffset);

Expand Down

0 comments on commit fc03113

Please sign in to comment.