title: how to create the pie Chart and fill percentage in swift
body: <p>I have create <code>UIView</code> from <code>UIViewController</code>, how to create pie chart in <code>UIView</code>?, I have create the <code>PieView</code> class for <code>UIView</code> and the class code is below,</p>
  
  <pre><code>import UIKit
  import Foundation
  
  class pieView: UIView {
  
      public var dataPoints: [DataPoint]? {          // use whatever type that makes sense for your app, though I'd suggest an array (which is ordered) rather than a dictionary (which isn't)
          didSet { setNeedsDisplay() }
      }
  
      @IBInspectable internal var lineWidth: CGFloat = 2 {
          didSet { setNeedsDisplay() }
      }
  
  } 
  </code></pre>
  
  <p>I have confused what is format to be used? coreplot or charts <code>frameworks</code> or other any method.</p>
  
  <p><code>Objective-C</code> is get the custom code but i need <code>swift</code> language code, how to implement pie chart in <code>UIView</code> and fill percentage,</p>
  
  <p>Thanks in advance.</p>