Skip to content

susrisha/Verbena

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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