Latest 0.1.5
License MIT
Platforms ios 8.0
Frameworks UIKit


CI Status
Carthage compatible


To run the example project, clone the repo, and run pod install from the Example directory first.You can view it from Appetize


  • Swift3
  • Xcode 8.1+
  • iOS 8.0+


CPCollectionViewWheelLayoutSwift supports multiple methods for installing the library in a project.

Installation with CocoaPods

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

pod "CPCollectionViewWheelLayoutSwift"

Installation with Carthage

Carthage is supported as well.To install
it, add the following line to your Cartfile, then Drag the Framework to your Project:

github "ParsifalC/CPCollectionViewWheelLayoutSwift"

Install manually

  1. Clone OR Download this repo.
  2. Drag "CPCollectionViewWheelLayoutSwift.swift" to your project.


Just config your CollectionView with this layout:

let configuration = CPWheelLayoutConfiguration.init(withCellSize: CGSize.init(width: 100, height: 100), radius: 200, angular: 20, wheelType:wheelType)
let wheelLayout = CPCollectionViewWheelLayout.init(withConfiguration: configuration)
let colletionView = UICollectionView.init(frame: view.frame, collectionViewLayout:wheelLayout)

Support 8 types layout:

public enum CPWheelLayoutType:Int {
    case leftBottom = 0
    case rightBottom
    case leftTop
    case rightTop
    case leftCenter
    case rightCenter
    case topCenter
    case bottomCenter

Customize your layout:

public struct CPWheelLayoutConfiguration {
    public var cellSize:CGSize
    public var radius:Double
    public var angular:Double   
    public var fadeAway:Bool
    public var zoomInOut:Bool
    public var maxContentHeight:Double
    public var contentHeigthPadding:Double

See more in Example project.


Parsifal, [email protected]


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

Latest podspec

    "name": "CPCollectionViewWheelLayoutSwift",
    "version": "0.1.5",
    "summary": "An awesome layout for UICollcetionView",
    "description": "An awesome layout for UICollcetionView!",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Parsifal": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.5"
    "platforms": {
        "ios": "8.0"
    "source_files": "CPCollectionViewWheelLayoutSwift/**/*.swift",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "echo "3.0.2" > .swift-version"

Pin It on Pinterest

Share This