Maybe someone knows how to draw this type of line with bezierpath?
You can try using the NSShadow class to setup a blur around your path. Use 0 as X and Y offsets, and set a large blur before drawing the path.
Use +bezierPathWithRoundedRect:xRadius:yRadius: to make the "pill" shape. Set your shadow (as Laurent Etiemble suggested) and your drawing color and -fill the path. It'll be solid black with a shadow.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.