drawLayer:inContext not displaying drawing
<p>I'm trying to draw a blue circle inside a <em>UIView</em> subclass on Xcode 8, Swift 3. Inside a Cocoa Touch file that I'm using as the class for a <em>View</em> object in the <em>Storyboard</em>, I wrote the following code, but the circle is not displayed:</p>

<pre><code>import UIKit

class testView: UIView {
    override func draw(_ layer: CALayer, in ctx: CGContext) {
        ctx.addEllipse(in: CGRect(x: 0, y: 0, width: 100, height: 100))
        ctx.setFillColor(UIColor.blue.cgColor)
        ctx.fillPath()
    }
}
</code></pre>

<p>This version with <code>UIKit</code> doesn't display the circle neither:</p>

<pre><code>override func draw(_ layer: CALayer, in ctx: CGContext) {
    UIGraphicsPushContext(ctx)
    let p = UIBezierPath(ovalIn: CGRect(x: 0, y: 0, width: 100, height: 100))
    UIColor.blue.setFill()
    p.fill()
    UIGraphicsPopContext()
}
</code></pre>

<p>What am I doing wrong?</p>