CGContextAddArc draw multiple circle at different sizes
<p>I have these sizes that I want to draw a circle with (both width and height are the same obviously)</p>

<pre><code>205.0
218.0
245.0
257.0
310.0
510.0
</code></pre>

<p>When I draw my circle at 205.5 its fine, its a perfect circle. But when I start with 218, the circle gets cut off a little and it gets more and more cut off each time I try to make a bigger circle. My question is, how do I create a circle that is perfect, no matter what the size ?</p>

<p>Here is my code:</p>

<pre><code>func drawCircle()
{
    // Get the Graphics Context
    let context = UIGraphicsGetCurrentContext();

    // Set the circle outerline-width
    CGContextSetLineWidth(context, 5.0);

    // Set the circle outerline-colour
    UIColor.redColor().set()

    // Create Circle
    CGContextAddArc(context, (round(frame.size.width))/2, round(frame.size.height)/2, (round(frame.size.width) - 10)/2, 0.0, CGFloat(M_PI * 2.0), 1)

    // Draw
    CGContextStrokePath(context);
}
</code></pre>

<p><code>frame.size.width</code> and <code>frame.size.height</code> are the numbers of 205, 218 and so on. I will accept an Objective-C answer.</p>