Latest 1.0
Homepage https://github.com/luannguyenkhoa/LNHorizontalCollectionView
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Luan Nguyen/LNHorizontalCollectionView.svg?style=flat)](https://travis-ci.org/Luan Nguyen/LNHorizontalCollectionView)
Version
License
Platform

Example

A custom collection view flow layout with horizontal scrolling and paging.

Demo

image

Usage

. Just adding code below into viewDidLoad func in your viewcontroller :

let flowLayout = HorizontalFlowLayout()
flowLayout?.maximumSpacing = 5
collectionView?.collectionViewLayout = flowLayout!

. Default value of the number cell in one row is 2.

. In order to change the number cell in one row, using let flowLayout = HorizontalFlowLayout(numberInOneRow: 3) instead.

Requirements

. Xcode 8

. Swift 3

Installation

LNHorizontalCollectionView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "LNHorizontalCollectionView"

Author

Luan Nguyen, [email protected]

License

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

Latest podspec

{
    "name": "LNHorizontalCollectionView",
    "version": "1.0",
    "summary": "A custom horizontal collection view flow layout written in Swift.",
    "description": "This is a custom collection view flow layout with horizontal scrolling and paging.",
    "homepage": "https://github.com/luannguyenkhoa/LNHorizontalCollectionView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Luan Nguyen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/luannguyenkhoa/LNHorizontalCollectionView.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LNHorizontalCollectionView/Classes/**/*"
}

Pin It on Pinterest

Share This