Reimagining UICollectionView
init(columns: Int = 1, spacing: CGFloat = 10)
init(columns: Int = 2, spacing: CGFloat = 0)
pod "CollectionKit/WobbleAnimator"
BaseSimpleAnimator
BaseSimpleAnimator
to SimpleAnimator
to align with SimpleLayout
updateAnimationDuration
to animationDuration
var animationOptions: UIViewAnimationOptions
var useSpringAnimation: Bool
var springDamping: CGFloat
FadeAnimator
var alpha: CGFloat
ScaleAnimator
BaseSimpleAnimator
to FadeAnimator
var scale: CGFloat
Example project:
tapHandler
in SimpleViewProvider
.Focus of v2.0 will be towards API cleanliness & solves pain points with v1.0+
Main feature of v2.0:
CollectionProvider
, ViewCollectionProvider
, ViewProvider
, DataProvider
, etc.. are all quite confusing to use.Please checkout the migration guide for updating from v1~
CollectionView.activeFrameInset
is removed.VisibleFrameInsetLayout
is added to replace activeFrameInset
.
activeFrameInset
, use:SomeLayout().insetVisibleFrame(by: activeFrameInset)
CollectionComposer
reload performance is improved, especially for deeply nested sections. Previously each composer have to created an array of length of all items contained inside the composer during reload. and now it doesn't.CollectionViewProvider.reuseManager
public: https://github.com/SoySauceLab/CollectionKit/commit/69c6f70b7dcfba68b465b2dbc7c462f9142a8463