Skip to content
forked from kaishin/Verbena

Helper methods for UIKit and Core Graphics

License

Notifications You must be signed in to change notification settings

susrisha/Verbena

 
 

Repository files navigation

Verbena

UIKit and Core Graphics helper methods.

How to use

If you find yourself often writing this:

UIGraphicsBeginImageContextWithOptions();
// ...
UIImage *renderedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

Then Verbena is for you:

UIImage *backgroundImage = [KVRenderer renderImageWithSize:CGSizeMake(200, 204) transparency:YES andDrawingBlock:^{
    // Custom Core Graphics drawing code
}];

Add this to your Podfile:

pod 'Verbena'

Then run:

pod install

Demo:

Demo

Contribution & Roadmap

  • Write tests
  • Add helper methods for generating basic shapes
  • Add helper methods for generating gradients, borders and shadows

License

BSD Licenced

About

Helper methods for UIKit and Core Graphics

Resources

License

Stars

Watchers

Forks

Packages

No packages published