How to apply shadow to UIBezierPath
2 min readOct 3, 2020
Consider a simple rectangle that is drawn by the bezier path.
UIBezierPath* rectanglePath = [UIBezierPath bezierPathWithRect: CGRectMake(x,y,width,height)];
[UIColor.grayColor setFill];
[rectanglePath fill];
Basic Outer-fill shadow: