Latest 1.0.2
Homepage https://github.com/baldys/VBNestedCollectionView
License MIT
Platforms ios 8.0
Authors

alt text

UICollectionViews nested inside UITableViewCells that allows you to side scroll items in both dimensions to present an iTunes or Netflix-like UI

Getting started

  1. Add the pod

    pod 'VBNestedCollectionView'
  2. Subclass VBNestedCollectionView. (or if you want no custom functionality, use VBNestedCollectionView directly)

    protocol VBNestedCollectionViewDataSource: class {
      var rowHeight: CGFloat { get set }
    
      func numberOfRows() -> Int
      func numberOfItemsAt(row: Int) -> Int
    
      func cellFor(collectionView: UICollectionView, row: Int, item: Int, indexPath: IndexPath) -> UICollectionViewCell
      func customizeCollectionView(collectionView: UICollectionView)
    }
  3. Add as a subview

    myNestedView = CatPhotosNestedCollectionView(frame: self.view.frame);
    view.addSubview(myNestedView)
    myNestedView.tapHandler = self;
  4. Implement delegates to provide the items in the view and to handle didSelect events in your ViewController

Latest podspec

{
    "name": "VBNestedCollectionView",
    "version": "1.0.2",
    "summary": "A nested CollectionView inside a TableView that allows you to present iTunes or Netflix like 2-dimensional scrolling UX in your iOS App",
    "description": "A nested CollectionView inside a TableView that allows you to present iTunes or Netflix like 2-dimensional scrolling UX in your iOS App",
    "homepage": "https://github.com/baldys/VBNestedCollectionView",
    "license": "MIT",
    "authors": {
        "baldys": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/baldys/VBNestedCollectionView.git",
        "commit": "e445bb3872e1062f49be1fe3f966baac8e4f43d2"
    },
    "source_files": [
        "VBNestedCollectionView",
        "VBNestedCollectionView/**/*.{swift}"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This