Skip to content

krugazor/ForceDirectedLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ForceDirectedLayout

Custom subclass of UICollectionViewLayout that goes for a force directed positionning of the cells:

  • Cells are attracted to the center of the view
  • Cells are repulsed by each other

You should tweak the stiffness and charge variables before using it.

More info on how this layout works in the blog post

About

UICollectionView force-directed layout engine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages