TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2016 |
Maintained by irrationalfab.
Utilities for common and advanced graphics operations.
DSGraphicsKit provides support to quickly perform the following operations:
Use CocoaPods:
pod 'DSGraphicsKit'
UIView *view;
[view setYRotation:25.0f];
[view addReflectionToSuperLayer];
UIImage *source;
UIImage *fill;
UIColor *color1;
UIColor *color2;
UIImage *icon0 = [source gradientIconWithRGBColors:[NSArray arrayWithObjects:color1, color2, nil]];
UIImage *icon1 = [fill applyAlphaFromImage:source glowWidth:5.0f offset:CGSizeZero color:color1];
UIImage *icon2 = [source iconWithForeground:fill background:[UIColor colorWithWhite:0.1 alpha:1.0] radius:4.0];
UIImage *original;
UIImage *new = [original imageResizedToSize:CGSizeMake(160, 160)
withCornerRadius:24.0f
corners:DSCornerTopLeft | DSCornerBottomRight
transparency:NO];
UIView *view;
[view.layer addPopUpAnimation];