Guest User

Untitled

a guest
May 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight) {
  2. let translation1 = CGAffineTransform(scaleX: 1.5, y: 1.5)
  3. let translation2 = CGAffineTransform(translationX: 1.0, y: 1.0)
  4. UIView.animate(withDuration: 0.4, animations: { in
  5. entry.transform = translation1
  6. }) { didComplete in
  7. UIView.animate(withDuration: 0.4, animations: {
  8. entry.transform = translation2
  9. })
  10. }
  11. }
  12.  
  13. self.pieChart.highlightPerTapEnabled = true
Add Comment
Please, Sign In to add comment