Inherits from TKShape : NSObject
Declared in TKPredefinedShape.h

Overview

Represents a shape class that allows presenting different shapes based on a list with predefined shapes

Properties

type

a The type of the shape.

@property (nonatomic, assign, readonly) TKShapeType type

Discussion

The shape types are defined as follows:

typedef enum TKShapeType { TKShapeTypeNone, // No shape. TKShapeTypeSquare, // Square shape. TKShapeTypeCircle, // Circle shape. TKShapeTypeTriangleUp, // Triangle pointing up. TKShapeTypeTriangleDown, // Triangle pointing down. TKShapeTypeDiamond, // Diamond shape. TKShapeTypeRhombus, // Rhombus shape. TKShapeTypePentagon, // Pentagon shape. TKShapeTypeHexagon, // Hexagon shape. TKShapeTypeStar, // Star shape. TKShapeTypeHeart, // Heart shape. } TKShapeType;

Declared In

TKPredefinedShape.h

Class Methods

shapeWithType:andSize:

Creates a shape with specified type and size.

+ (instancetype __nonnull)shapeWithType:(TKShapeType)type andSize:(CGSize)size

Parameters

type

Specifies the type.

size

Specifies the size in pixels.

Declared In

TKPredefinedShape.h

Instance Methods

initWithType:andSize:

Creates a shape with specified form and size.

- (instancetype __nonnull)initWithType:(TKShapeType)type andSize:(CGSize)size

Parameters

type

Specifies the type.

size

Specifies the size in pixels.

Declared In

TKPredefinedShape.h