12345678910111213141516 |
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger, SQFContrastingColorMethod) {
- SQFContrastingColorFiftyPercentMethod,
- SQFContrastingColorYIQMethod
- };
- @interface UIColor (Additions)
- - (UIColor*)changeBrightnessByAmount:(CGFloat)amount;
- + (UIColor*)changeBrightness:(UIColor*)color amount:(CGFloat)amount;
- - (NSString *)hexValue;
- + (UIColor *)colorFromHex:(NSString *)s;
- - (UIColor *)sqf_contrastingColorWithMethod:(SQFContrastingColorMethod)method;
- @end
|