I am trying to stroke the paths in CAShapeLayer
using dash patterns. I have created many dash patterns using lineDashPattern
property. But this property doesn't give any option for type of dash stroked. I want to be my dashes to be round dots like in image below:
I know it can be achieved because I have seen this in many apps. But I am not able to find any way to implement this in CAShapeLayer
library. So I want to know how to get these round dot dash pattern?
x = 2 * linewitdh
it gives me pills – Townsley