Inherits from UICollectionViewLayout
Declared in TKListViewLinearLayout.h

Overview

A base layout used to render cells in TKListView.

Properties

animationDuration

Defines the animation duration.

@property (nonatomic) CGFloat animationDuration

Declared In

TKListViewLinearLayout.h

dynamicItemSize

Determine item size by calling the sizeThatFits method for each cell.

@property (nonatomic) BOOL dynamicItemSize

Declared In

TKListViewLinearLayout.h

footerReferenceSize

The footer reference size.

@property (nonatomic) CGSize footerReferenceSize

Declared In

TKListViewLinearLayout.h

headerReferenceSize

The header reference size.

@property (nonatomic) CGSize headerReferenceSize

Declared In

TKListViewLinearLayout.h

itemAlignment

The desired cell alignment within a column.

@property (nonatomic) TKListViewItemAlignment itemAlignment

Declared In

TKListViewLinearLayout.h

itemAppearAnimation

Defines the animation that will be used when an item appears.

@property (nonatomic) TKListViewItemAnimation itemAppearAnimation

Declared In

TKListViewLinearLayout.h

itemDeleteAnimation

Defines the animation that will be used when removing an item.

@property (nonatomic) TKListViewItemAnimation itemDeleteAnimation

Declared In

TKListViewLinearLayout.h

itemInsertAnimation

Defines the animation that will be used when inserting an item.

@property (nonatomic) TKListViewItemAnimation itemInsertAnimation

Declared In

TKListViewLinearLayout.h

itemSize

The item size.

@property (nonatomic) CGSize itemSize

Declared In

TKListViewLinearLayout.h

itemSpacing

The spacing between items.

@property (nonatomic) CGFloat itemSpacing

Declared In

TKListViewLinearLayout.h

scrollDirection

The scroll direction.

@property (nonatomic) TKListViewScrollDirection scrollDirection

Declared In

TKListViewLinearLayout.h

Instance Methods

calculatedItemWidth

Calculates the item width(height when using horizontal scroll direction) based on layout parameters.

- (CGFloat)calculatedItemWidth

Declared In

TKListViewLinearLayout.h

initFooterAttributes:atPoint:

Initializes the group footer layout attributes.

- (CGPoint)initFooterAttributes:(UICollectionViewLayoutAttributes *__nonnull)attributes atPoint:(CGPoint)point

Parameters

attributes

The attributes to initialize.

point

The current location.

Declared In

TKListViewLinearLayout.h

initHeaderAttributes:atPoint:

Initializes the group header layout attributes.

- (CGPoint)initHeaderAttributes:(UICollectionViewLayoutAttributes *__nonnull)attributes atPoint:(CGPoint)point

Parameters

attributes

The attributes to initialize.

point

The current location.

Declared In

TKListViewLinearLayout.h

initItemAttributes:atPoint:lastInSection:

Initializes a single item layout attributes.

- (CGPoint)initItemAttributes:(UICollectionViewLayoutAttributes *__nonnull)attributes atPoint:(CGPoint)point lastInSection:(BOOL)lastInSection

Parameters

attributes

The item attributes to initialize.

point

The current location.

lastInSection

Indicates whether the item is the last in its section.

Declared In

TKListViewLinearLayout.h

layoutSection:atPoint:

Initializes item attributes in list view group.

- (CGPoint)layoutSection:(NSInteger)section atPoint:(CGPoint)location

Parameters

section

The current section to initialize.

location

The current location.

Declared In

TKListViewLinearLayout.h