Skip to content

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1.5k stars

Watchers

19 watching

Forks

Repository files navigation

CenteredCollectionView

CI Version Carthage compatible SwiftPM compatible Swift 5.9 Swift Package Index Platforms Platform

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 13.0 or greater

Installation

CenteredCollectionView is available through Swift Package Manager, CocoaPods and Carthage.

To install it with Swift Package Manager, add the URL https://github.com/BenEmdon/CenteredCollectionView in Xcode Add Package Dependency assistant ; or add to your own Package.swift:

dependencies: [
  .package(url: "https://github.com/BenEmdon/CenteredCollectionView", from: "2.3.0")
]

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!

Issues and pull requests are triaged on a best effort basis, usually once a week. There is no stale bot here: a report from a real person stays open until a person answers it.

Author

@BenEmdon 👨‍💻

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1.5k stars

Watchers

19 watching

Forks

Releases

Packages

Used by

Contributors

Languages