BenEmdon/CenteredCollectionView
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
CenteredCollectionView is now available for SPM. Big thanks to @Dean151 🎉
Thank you @vkcldhkd for updating CenteredCollectionView to Swift 5 in #42
Thanks to @bimawa in #39, tvOS support has now been added.
📋 Changes
- Supports latest project config settings
- Supports Swift 4.2
Storyboard support is here and there is now a tutorial in the [`USAGE.md`](https://github.com/BenEmdon/CenteredCollectionView/blob/master/USAGE.md) doc.
📋 Changes
- Fixed a crash when integrating with storyboards.
Fixed podspec
Thanks to @h-yuya for making code slightly more palatable in #26.
This release adds swift 4 compatibility and reduces our travis build debt.
📋 Changes
- Removed `CenteredCollectionView` subclass (resolves #19)
- Moved all custom methods back onto the `CenteredCollectionViewFlowLayout`
- Added a `UICollectionView` convenience init to create a and configure a `UICollectionView` with a `CenteredCollectionViewFlowLayout`
📋 Changes
- Removed logging on `currentCenteredPage` calculation
Thanks to @dunqi in #12 we now support Carthage!
📋 Changes
- Removed all logic that had to override the delegate
- safer `currentCenteredPage` calculation
Fixed miscalculation of `currentCenteredPage` on smaller screens using relative (%) width on cell item size.
Fixed bug where `scrollTo:Index` would cause a freeze when: ``` swift abs(proposedContentOffset - contentOffset) < 1 ```
📋 Changes
- animates `scrollTo:page` after `didSelectItemAt:atIndexPath` when `scrollToEdgeEnabled` is `true`
Stable release for internal use.
