Inherits from NSObject
Conforms to NSCopying
TKDrawing
Declared in TKFill.h

Overview

The base class for all fills. Should not be instantiated directly.

Properties

alpha

A value that specifies the opacity level. Values can range from 0.0 (transparent) to 1.0 (opaque). Values outside this range are clipped to 0.0 or 1.0.

@property (nonatomic, assign) CGFloat alpha

Declared In

TKFill.h

cornerRadius

The radius to use when drawing rounded corners. The default is 0.

@property (nonatomic, assign) CGFloat cornerRadius

Declared In

TKFill.h

corners

A bitmask value that identifies the corners that you want rounded. You can use this parameter to round only a subset of the corners of the rectangle. The default is all corners. Ignored if cornerRadius is zero.

@property (nonatomic, assign) UIRectCorner corners

Declared In

TKFill.h

insets

Edge insets to apply.

@property (nonatomic, assign) UIEdgeInsets insets

Declared In

TKFill.h

shadowBlur

The shadow blur.

@property (nonatomic) CGFloat shadowBlur

Declared In

TKFill.h

shadowColor

The shadow color.

@property (nonatomic, strong, nullable) UIColor *shadowColor

Declared In

TKFill.h

shadowOffset

The shadow offset

@property (nonatomic) CGSize shadowOffset

Declared In

TKFill.h

Instance Methods

drawFillInContext:withPath:

Draws a fill as a path in a given context

- (void)drawFillInContext:(CGContextRef __nonnull)context withPath:(CGPathRef __nullable)path

Parameters

context

The context used to draw with.

path

The path drawn on the screen.

Declared In

TKFill.h

drawFillInContext:withRect:

Draws a fill as rectangle in a given context.

- (void)drawFillInContext:(CGContextRef __nonnull)context withRect:(CGRect)rect

Parameters

context

The context used to draw with.

rect

The rectangle drawn on the screen.

Declared In

TKFill.h