Skip to content

dDomovoj/CollectionCraft

Repository files navigation

CollectionCraft

  • CollectionView wrapping library

Install

  • Cocoapods:
pod 'CollectionCraft'

Sourcery Build Phase:

unset SDKROOT
"$PODS_ROOT/Sourcery/bin/sourcery" --config "$PODS_ROOT/CollectionCraft/.sourcery/.sourcery.yml"

Also make sure to update ProjectName, Target and Module in Pods/CollectionCraft/.sourcery/.sourcery.yml file

Then marking class SomeCell: CollectionViewCell, IReusableCell with

// sourcery: auto = "cell"
// sourcery: auto = "header"
// sourcery: auto = "footer"

will generate convenient initializers and builder accessors for CollectionCell<SomeCell>, CollectionHeader<SomeCell>, CollectionFooter<SomeCell> accordingly in $PODS_ROOT/../Generated/AutoReusableCell.generated.swift

About

CollectionView wrapping library

Resources

License

Stars

Watchers

Forks

Packages

No packages published