To run the example project, clone the repo, and run pod install
from the Example directory first.
let image = BugImageCreator.getCacheOrCreate(size: 50, lineWidth: 1, color: .blackColor())
or
public override func drawRect(rect: CGRect) {
super.drawRect(rect)
BugImageCreator.drawToCurrentContext(size: rect.size, center: CGPoint(x: rect.width / 2, y: rect.height / 2), lineWidth: 1, color: .blackColor())
}
BugImageCreator is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "BugImageCreator"
Koji Murata, malt.koji@gmail.com
BugImageCreator is available under the MIT license. See the LICENSE file for more info.