TKGradientFill Class Reference
Inherits from | TKFill : NSObject |
Declared in | TKGradientFill.h |
Properties
Instance Methods
initWithColors:
Initializes a linear gradient brush with colors.
- (instancetype __nonnull)initWithColors:(NSArray *__nonnull)colors
Parameters
- colors
The array of UIColor containing gradient colors.
Declared In
TKGradientFill.h
initWithColors:cornerRadius:
Initializes a linear gradient brush with colors and corner radius.
- (instancetype __nonnull)initWithColors:(NSArray *__nonnull)colors cornerRadius:(CGFloat)cornerRadius
Parameters
- colors
The array of UIColor containing gradient colors.
- cornerRadius
The corner radius in points.
Declared In
TKGradientFill.h
initWithColors:locations:
- (instancetype __nonnull)initWithColors:(NSArray *__nonnull)colors locations:(NSArray *__nonnull)locations
Parameters
- colors
The array of UIColor containing gradient colors.
- locations
The array of NSNumber objects defining the location of each gradient stop in the interval of 0 to 1.
Declared In
TKGradientFill.h
initWithColors:locations:cornerRadius:
- (instancetype __nonnull)initWithColors:(NSArray *__nonnull)colors locations:(NSArray *__nonnull)locations cornerRadius:(CGFloat)cornerRadius
Parameters
- colors
The array of UIColor containing gradient colors.
- locations
The array of NSNumber objects defining the location of each gradient stop in the interval of 0 to 1.
- cornerRadius
The corner radius in points.
Declared In
TKGradientFill.h