BugImageCreator
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Usage
via code
let image = BugImageCreator.getCacheOrCreate(size: 50, lineWidth: 1, color: .blackColor())
or
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())
}
via Interface Builder
Installation
BugImageCreator is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "BugImageCreator"
Author
Koji Murata, [email protected]
License
BugImageCreator is available under the MIT license. See the LICENSE file for more info.