SWCollectionViewDataSourceLineLayout Protocol Reference
Conforms to | UICollectionViewDataSource |
Declared in | SWCollectionViewLineLayout.h |
Overview
Members conforming to this protocol are responsible for providing data on Line-Layout-specific data, such as “which side does in item at this index path lie on?”
Tasks
-
– sideForItemAtIndexPath:
The layout asks its data source which side of the line an item is on.
Instance Methods
sideForItemAtIndexPath:
The layout asks its data source which side of the line an item is on.
- (SWCollectionViewLineLayoutAttributeSide)sideForItemAtIndexPath:(NSIndexPath *)indexPath
Parameters
- indexPath
The index path of the item.
Return Value
The side of the line the item lies on.
Declared In
SWCollectionViewLineLayout.h