Skip to content

Commit

Permalink
Merge pull request #1 from Addepar/fix-xcode-14-build-issues
Browse files Browse the repository at this point in the history
Fix xcode 14 build issues and upgrade to 3.6
  • Loading branch information
aslattum-addepar authored Sep 15, 2022
2 parents acae463 + 839e8e1 commit d051594
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Charts.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Charts"
s.version = "3.5.6"
s.version = "3.6"
s.summary = "Charts is a powerful & easy to use chart library for iOS, tvOS and OSX (and Android)"
s.homepage = "https://github.com/danielgindi/Charts"
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Animation/ChartAnimationEasing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ internal struct EasingFunctions
let s: TimeInterval = 1.70158
var position: TimeInterval = elapsed / duration
position -= 1.0
return Double( position * position * ((s + 1.0) * position + s) + 1.0 )
return Double( position * position * ((s + Double(1.0)) * position + s) + Double(1.0) )
}

internal static let EaseInOutBack = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,4 +571,9 @@ extension ChartDataSet: RangeReplaceableCollection {
entries.removeAll(keepingCapacity: keepCapacity)
notifyDataSetChanged()
}

public func replaceSubrange<C>(_ subrange: Swift.Range<Int>, with newElements: C) where C : Collection, ChartDataEntry == C.Element {
entries.replaceSubrange(subrange, with: newElements)
notifyDataSetChanged()
}
}

0 comments on commit d051594

Please sign in to comment.