Converting UIColor to CGColor in swift

前端 未结 3 569
旧巷少年郎
旧巷少年郎 2020-12-23 15:39

This is the Obj-C code:

CGContextSetStrokeColorWithColor(context, [[UIColor lightGrayColor] CGColor]);

How do I write it in swift.

3条回答
提交回复
热议问题