Gotanda 0.2.0

Gotanda 0.2.0

测试已测试
Lang语言 SwiftSwift
许可证 MIT
发布最后发布2017年12月
SwiftSwift 版本4.0
SPM支持 SPM

Sota Yokoe 维护。



Gotanda 0.2.0

Gotanda

使用方法

let gotanda = Gotanda(width: 300, height: 200, backgroundColor: NSColor.yellowColor().CGColor).draw { (context) in
    // Draw something using context
}

if let pngData = gotanda.pngData {
    // Save PNG data.
}

初始化器

Gotanda(width: 300, height: 200, backgroundColor: NSColor.yellowColor().CGColor)
Gotanda(image: #imageLiteral(resourceName: "SomeImage"))

要求

  • iOS 8.0+
  • macOS 10.9+

安装

Gotanda 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod "Gotanda"

作者

Sota Yokoe, [email protected]

许可证

Gotanda 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。