/BugImageCreator

Primary LanguageShellMIT LicenseMIT

BugImageCreator

Platform Language CocoaPods License

Screenshot

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 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())
}

via Interface Builder

ib

Installation

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

pod "BugImageCreator"

Author

Koji Murata, malt.koji@gmail.com

License

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