Skip to content

Commit

Permalink
Merge branch 'artemkalinovsky-fix_x_axis_labels_redraw_duplication'
Browse files Browse the repository at this point in the history
  • Loading branch information
philackm committed Dec 3, 2016
2 parents 8a227ea + d901c8f commit 2a38837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/ScrollableGraphView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,8 @@ import UIKit

label.frame = CGRect(origin: CGPoint(x: position.x - label.frame.width / 2, y: position.y + dataPointLabelTopMargin), size: label.frame.size)

let _ = labelsView.subviews.filter { $0.frame == label.frame }.map { $0.removeFromSuperview() }

labelsView.addSubview(label)
}
}
Expand Down

0 comments on commit 2a38837

Please sign in to comment.