Latest 0.3.0
Homepage https://github.com/wusuowei/WTCarouselFlowLayout
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

WTCarouselFlowLayout is flow layout for UICollectionView.

  • WTCarouselFlowLayoutBaselineType.top

    image

  • WTCarouselFlowLayoutBaselineType.center

    image

  • WTCarouselFlowLayoutBaselineType.bottom

    image

  • layout.itemSpacing = -15

    image

Requirements

  • iOS 8.0+

Installation

CocoaPods

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

pod "WTCarouselFlowLayout"

Example

Via code

import WTCarouselFlowLayout

Create a WTCarouselFlowLayout object, set its itemSize and assign it to your UICollectionView.

let layout = self.collectionView.collectionViewLayout as! WTCarouselFlowLayout
layout.itemSize = CGSize(width: 70, height: 100)
layout.scrollDirection = .horizontal
layout.itemSpacing = 15
//  layout.itemSpacing = -15
layout.sideItemScale = 0.7
layout.sideItemAlpha = 0.7
layout.sideItemBaselineType = .center
layout.sideItemOffset = 0.0

detail

iOS UICollectionView 卡片效果 传送带效果

Author

wentianen, [email protected]

License

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

Latest podspec

{
    "name": "WTCarouselFlowLayout",
    "version": "0.3.0",
    "summary": "To use collectView show carousel list.",
    "description": "WTCarouselFlowLayout one kind of collectView layout to show carousel list.",
    "homepage": "https://github.com/wusuowei/WTCarouselFlowLayout",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "wentianen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wusuowei/WTCarouselFlowLayout.git",
        "tag": "0.3.0"
    },
    "social_media_url": "http://www.jianshu.com/u/d83ef9913d22",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "WTCarouselFlowLayout/Classes/**/*",
    "pushed_with_swift_version": "3.2"
}

Pin It on Pinterest

Share This