Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BenEmdon/CenteredCollectionView
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
https://github.com/BenEmdon/CenteredCollectionView
carousel carthage center cocoapods ios spm swift tvos uicollectionview uicollectionviewflowlayout uicollectionviewlayout
Last synced: 3 days ago
JSON representation
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
- Host: GitHub
- URL: https://github.com/BenEmdon/CenteredCollectionView
- Owner: BenEmdon
- License: mit
- Created: 2016-09-03T00:42:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-20T08:28:57.000Z (almost 4 years ago)
- Last Synced: 2024-12-04T13:48:46.811Z (8 days ago)
- Topics: carousel, carthage, center, cocoapods, ios, spm, swift, tvos, uicollectionview, uicollectionviewflowlayout, uicollectionviewlayout
- Language: Swift
- Homepage:
- Size: 22.1 MB
- Stars: 1,378
- Watchers: 23
- Forks: 111
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-ios - CenteredCollectionView - A lightweight UICollectionViewLayout that _'pages'_ and centers it's cells 🎡 written in Swift. (UI / Table View / Collection View)
- awesome-swift - CenteredCollectionView - A lightweight UICollectionViewLayout that pages and centers it's cells. (Libs / UI)
- awesome-swift - CenteredCollectionView - A lightweight UICollectionViewLayout that pages and centers it's cells. (Libs / UI)
- awesome-ios-star - CenteredCollectionView - A lightweight UICollectionViewLayout that _'pages'_ and centers it's cells 🎡 written in Swift. (UI / Table View / Collection View)
- fucking-awesome-swift - CenteredCollectionView - A lightweight UICollectionViewLayout that pages and centers it's cells. (Libs / UI)
- awesome-swift - CenteredCollectionView - A lightweight UICollectionViewLayout that 'pages' and centers its cells written in Swift ` 📝 a year ago` (UI [🔝](#readme))
README
# CenteredCollectionView
[![Build Status](https://travis-ci.org/BenEmdon/CenteredCollectionView.svg?branch=master)](https://travis-ci.org/BenEmdon/CenteredCollectionView)
[![Version](https://img.shields.io/cocoapods/v/CenteredCollectionView.svg?style=flat)](http://cocoapods.org/pods/CenteredCollectionView)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)
[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat)](https://swift.org)
[![Platform](https://img.shields.io/badge/platforms-iOS%20%7C%20tvOS-orange.svg)](http://cocoapods.org/pods/CenteredCollectionView)`CenteredCollectionView` is a lightweight drop in place `UICollectionViewFlowLayout` that _pages_ and keeps its cells centered, resulting in the _"carousel effect"_ 🎡
## Example
![Demo](/.github/demo.gif)
To try the example using Cocoapods:
```bash
pod try CenteredCollectionView
```## Requirements
This pod requires a deployment target of iOS 9.0 or greater## Installation
CenteredCollectionView is available through [Swift Package Manager](https://swift.org/package-manager/), [CocoaPods](http://cocoapods.org) and [Carthage](https://github.com/Carthage/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`:
```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`:
```ruby
pod "CenteredCollectionView"
```To install it with **Carthage**, add the following line to your `Cartfile`:
```
github "BenEmdon/CenteredCollectionView"
```## Usage
Checkout [`USAGE.md`](/USAGE.md)## API
Checkout [`API.md`](/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 👨💻](https://twitter.com/BenEmdon)
## License
CenteredCollectionView is available under the MIT license. See the LICENSE file for more info.