Gotanda 0.2.0

Gotanda 0.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Sota Yokoe.



Gotanda 0.2.0

Gotanda

Usage

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.
}

Initializers

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

Requirements

  • iOS 8.0+
  • macOS 10.9+

Installation

Gotanda is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Gotanda"

Author

Sota Yokoe, [email protected]

License

Gotanda is available under the MIT license. See the LICENSE file for more info.