项目作者: BenEmdon

项目描述 :
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
高级语言: Swift
项目地址: git://github.com/BenEmdon/CenteredCollectionView.git
创建时间: 2016-09-03T00:42:11Z
项目社区:https://github.com/BenEmdon/CenteredCollectionView

开源协议:MIT License

下载


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:

  1. 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:

  1. dependencies: [
  2. .package(url: "https://github.com/BenEmdon/CenteredCollectionView", from: "2.2.2")
  3. ]

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

  1. pod "CenteredCollectionView"

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

  1. 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.