BugImageCreator 1.0.6

BugImageCreator 1.0.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2019
SPMSupports SPM

Maintained by Koji Murata.




  • By
  • Koji Murata

BugImageCreator

Platform Language CocoaPods Carthage compatible 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 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

ib

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.