Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

argon/ANDistributedFlowLayout

Repository files navigation

ANDistributedFlowLayout

ANDistributedFlowLayout is a subclass of UICollectionViewFlowLayout which distributes cells evenly in across each row.

Usage

# In your Podfilepod'ANDistributedFlowLayout'

Objective-C:

ANDistributedFlowLayout *layout = [ANDistributedFlowLayout new]; layout.minimumInteritemSpacing = 10.f; layout.minimumLineSpacing = 10.f; [[UICollectionViewController alloc] initWithCollectionViewLayout:layout];

Swift:

letlayout=ANDistributedFlowLayout() layout.minimumInteritemSpacing =10.0 layout.minimumLineSpacing =10.0UICollectionViewController(collectionViewLayout: layout)

Example

See the layout in use in the ./Example app:

About

Aligns collection view cells to the center of the screen.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C92.4%
  • Ruby7.6%