BugImageCreator
示例
要运行示例项目,首先克隆仓库,然后在 Example 目录中运行 pod install
使用方式
通过代码
let image = BugImageCreator.getCacheOrCreate(size: 50, lineWidth: 1, color: .blackColor())
或
public override func draw(_ rect: CGRect) {
super.draw(rect)
BugImageCreator.drawToCurrentContext(size: rect.size, center: CGPoint(x: rect.width / 2, y: rect.height / 2), lineWidth: 1, color: .blackColor())
}
通过 Interface Builder
安装
BugImageCreator可通过CocoaPods获取。要安装它,只需在Podfile中添加以下行
pod "BugImageCreator"
作者
ムラタ・コウジ,[email protected]
许可证
BugImageCreator遵循MIT许可证。有关更多信息,请参阅LICENSE文件。