Skip to content
UICollectionView force-directed layout engine
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/ForceDirectedLayout
Tests
.gitignore
Package.swift
README.md

README.md

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

You can’t perform that action at this time.