Inherits from CALayer
Declared in TKLayer.h

Overview

Represents a layer that supports drawings and shapes

Properties

fill

The layer’s fill

@property (nonatomic, strong) TKFill *fill

Declared In

TKLayer.h

shape

Gets or sets the layer’s shape

@property (nonatomic, strong) TKShape *shape

Declared In

TKLayer.h

stroke

The layer’s stroke

@property (nonatomic, strong) TKStroke *stroke

Declared In

TKLayer.h

Instance Methods

sizeThatFits:

Return ‘best’ size to fit given size. does not actually resize view. Default is return existing view size

- (CGSize)sizeThatFits:(CGSize)size

Parameters

size

The size

Declared In

TKLayer.h

sizeToFit

Calls sizeThatFits: with current view bounds and changes bounds size.

- (void)sizeToFit

Declared In

TKLayer.h