UIColor(BTUIK)

@interface UIColor (BTUIK)

/// Color with bytes and alpha
+ (instancetype)btuik_colorWithBytesR:(NSInteger)r G:(NSInteger)g B:(NSInteger)b A:(NSInteger)a;

/// Color with bytes
+ (instancetype)btuik_colorWithBytesR:(NSInteger)r G:(NSInteger)g B:(NSInteger)b;

/// Color from hex string with alpha
+ (instancetype)btuik_colorFromHex:(NSString *)hex alpha:(CGFloat)alpha;

/// Asjusts the brightness of a color
- (instancetype)btuik_adjustedBrightness:(CGFloat)adjustment;

@end

Undocumented

  • Color with bytes and alpha

    Declaration

    Objective-C

    + (instancetype)btuik_colorWithBytesR:(NSInteger)r
                                        G:(NSInteger)g
                                        B:(NSInteger)b
                                        A:(NSInteger)a;

    Swift

    class func btuik_color(withBytesR r: Int, g: Int, b: Int, a: Int) -> Self!
  • Color with bytes

    Declaration

    Objective-C

    + (instancetype)btuik_colorWithBytesR:(NSInteger)r
                                        G:(NSInteger)g
                                        B:(NSInteger)b;

    Swift

    class func btuik_color(withBytesR r: Int, g: Int, b: Int) -> Self!
  • Color from hex string with alpha

    Declaration

    Objective-C

    + (instancetype)btuik_colorFromHex:(NSString *)hex alpha:(CGFloat)alpha;

    Swift

    class func btuik_color(fromHex hex: String!, alpha: CGFloat) -> Self!
  • Asjusts the brightness of a color

    Declaration

    Objective-C

    - (instancetype)btuik_adjustedBrightness:(CGFloat)adjustment;

    Swift

    func btuik_adjustedBrightness(_ adjustment: CGFloat) -> Self!