UIColor+Additions.h 465 B

12345678910111213141516
  1. #import <UIKit/UIKit.h>
  2. typedef NS_ENUM(NSInteger, SQFContrastingColorMethod) {
  3. SQFContrastingColorFiftyPercentMethod,
  4. SQFContrastingColorYIQMethod
  5. };
  6. @interface UIColor (Additions)
  7. - (UIColor*)changeBrightnessByAmount:(CGFloat)amount;
  8. + (UIColor*)changeBrightness:(UIColor*)color amount:(CGFloat)amount;
  9. - (NSString *)hexValue;
  10. + (UIColor *)colorFromHex:(NSString *)s;
  11. - (UIColor *)sqf_contrastingColorWithMethod:(SQFContrastingColorMethod)method;
  12. @end