UIKit and Core Graphics helper methods.
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:
- Write tests
- Add helper methods for generating basic shapes
- Add helper methods for generating gradients, borders and shadows
BSD Licenced