Skip to content

A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift

License

Notifications You must be signed in to change notification settings

StreamLayer/CenteredCollectionView

 
 

Repository files navigation

CenteredCollectionView

Build Status Version Carthage compatible Swift 5.0 Platform Backers on Open Collective Sponsors on Open Collective

CenteredCollectionView is a lightweight drop in place UICollectionViewFlowLayout that pages and keeps its cells centered, resulting in the "carousel effect" 🎡

Example

Demo

To try the example using Cocoapods:

pod try CenteredCollectionView

Requirements

This pod requires a deployment target of iOS 9.0 or greater

Installation

CenteredCollectionView is available through CocoaPods and Carthage.

To install it with Cocoapods, add the following line to your Podfile:

pod "CenteredCollectionView"

To install it with Carthage, add the following line to your Cartfile:

github "BenEmdon/CenteredCollectionView"

Usage

Checkout USAGE.md

API

Checkout API.md

Contributing

Have a suggestion? All contributions are welcome!

If you make a pull request or an issue, you're likely to get a swift response!

Author

@BenEmdon 👨‍💻

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

CenteredCollectionView is available under the MIT license. See the LICENSE file for more info.

About

A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%