BugImageCreator 1.0.6

BugImageCreator 1.0.6

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布日期上次发布2019年4月
SPM支持 SPM

Koji Murata 维护。




  • Koji Murata

BugImageCreator

Platform Language CocoaPods Carthage compatible License

Screenshot

示例

要运行示例项目,首先克隆仓库,然后在 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

ib

安装

BugImageCreator可通过CocoaPods获取。要安装它,只需在Podfile中添加以下行

pod "BugImageCreator"

作者

ムラタ・コウジ,[email protected]

许可证

BugImageCreator遵循MIT许可证。有关更多信息,请参阅LICENSE文件。