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

BenEmdon/CenteredCollectionView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f2bf371 Β· Jan 26, 2020
Oct 3, 2019
Apr 10, 2019
Apr 9, 2019
Feb 14, 2018
Jan 3, 2017
Apr 12, 2018
Apr 9, 2019
Dec 3, 2018
Jun 28, 2017
Jan 24, 2020
Jan 3, 2017
Jan 6, 2020
Jan 24, 2020
Jan 24, 2020
Jan 3, 2017
Mar 26, 2018

Repository files navigation

CenteredCollectionView

Build Status Version Carthage compatible SwiftPM compatible Swift 5.0 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 9.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.2.2")
]

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 πŸ‘¨β€πŸ’»

License

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