title: How to draw a semi-circle using swift iOS 9 and on the basis of one value draw angle and fill that only part with color
body: <p>I want to draw the two semi circles like this as shown in picture (the below one)</p>
  
  <p><a href="https://i.stack.imgur.com/Ar448.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ar448.jpg" alt="enter image description here"></a>
  I'm trying it but did not get anything.
  Tried some chart api and a few code to draw pie chart from stackoverflow but they need to edit and I don't know about Core Graphics.
  I am working on Xcode 7.3.1 and iOS 9.</p>
  
  <p>My Question is:<br>
  How do I draw a semi-circle which take one value and first convert that value to get its equivalent angle and then draw an arc of this angle and fill color in that part?</p>