I created line circle with shadow, but when I tried to change shadowRadius
, the shadow was not showing
let path = UIBezierPath(ovalIn: rect)
let shapeLayer = CAShapeLayer()
shapeLayer.path = path.cgPath
shapeLayer.fillColor = UIColor.clear.cgColor
shapeLayer.strokeColor = UIColor.white.cgColor
shapeLayer.lineWidth = 1
shapeLayer.shadowOpacity = 0.9
shapeLayer.shadowColor = UIColor.white.cgColor
shapeLayer.shadowOffset = .zero
shapeLayer.shadowRadius = 10.0
//shapeLayer.shadowPath = path.cgPath
layer.addSublayer(shapeLayer)
line circle with default corner radius
line circle with corner radius 10.0
Can someone help me?