Skip to content

Commit

Permalink
Fix Xcode 14 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehouse authored Sep 8, 2022
1 parent 65dbd49 commit 7f9d3c8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,11 @@ extension ChartDataSet: RandomAccessCollection {

// MARK: RangeReplaceableCollection
extension ChartDataSet: RangeReplaceableCollection {
public func replaceSubrange<C>(_ subrange: Swift.Range<Index>, with newElements: C) where C : Collection, Element == C.Element {
entries.replaceSubrange(subrange, with: newElements)
notifyDataSetChanged()
}

public func append(_ newElement: Element) {
calcMinMax(entry: newElement)
entries.append(newElement)
Expand Down

0 comments on commit 7f9d3c8

Please sign in to comment.