Skip to content

Commit

Permalink
Default animation curve set as in-out-sine
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Apr 7, 2015
1 parent eb0bc8f commit 56edf30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Charts/Classes/Animation/ChartAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public class ChartAnimator: NSObject
/// :param: yAxisDuration duration for animating the y axis
public func animate(#xAxisDuration: NSTimeInterval, yAxisDuration: NSTimeInterval)
{
animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easing: nil);
animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easingOption: .EaseInOutSine);
}

/// Animates the drawing / rendering of the chart the x-axis with the specified animation time.
Expand All @@ -185,7 +185,7 @@ public class ChartAnimator: NSObject
/// :param: xAxisDuration duration for animating the x axis
public func animate(#xAxisDuration: NSTimeInterval)
{
animate(xAxisDuration: xAxisDuration, yAxisDuration: 0.0, easing: nil);
animate(xAxisDuration: xAxisDuration, yAxisDuration: 0.0, easingOption: .EaseInOutSine);
}

/// Animates the drawing / rendering of the chart the y-axis with the specified animation time.
Expand All @@ -211,6 +211,6 @@ public class ChartAnimator: NSObject
/// :param: yAxisDuration duration for animating the y axis
public func animate(#yAxisDuration: NSTimeInterval)
{
animate(xAxisDuration: 0.0, yAxisDuration: yAxisDuration, easing: nil);
animate(xAxisDuration: 0.0, yAxisDuration: yAxisDuration, easingOption: .EaseInOutSine);
}
}

0 comments on commit 56edf30

Please sign in to comment.