Here is my code to add an elliptic CALayer to a UIView:
CALayer
UIView
let circleLayer = CAShapeLayer() circleLayer.path = UIBezierPath(arcCenter: