import 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 is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Gotanda"
Sota Yokoe, info@kreuz45.com
Gotanda is available under the MIT license. See the LICENSE file for more info.