Giter VIP home page Giter VIP logo

gltablecollectionview's Introduction

GLTableCollectionView

Branch Status
master masterCIStatus
develop developCIStatus

Language Supported platforms codebeat badge GitHub license

What it is

GLTableCollectionView is a ready to use UITableViewController with a UICollectionView for each UITableViewCell, something like Netflix, Airbnb or the Apple's App Store are doing in their iOS apps. GLTableCollectionView is completely customizable in both his UITableView and UICollectionView parts since it has been made on the same Data Source and Delegate methods with no complicated additions.

GLTableCollectionView
๐Ÿ”„ Uses the same UITableView reusable cells logic provided from Apple's implementation
โ™ป๏ธ UICollectionView cell recycle
๐Ÿ†’ Both UITableView & UICollectionView can have their own sections and/or headers
๐ŸŽจ Customization of UICollectionViewCells using the same UICollectionViewDelegate Flow Layout you already know
โœจ Previous UICollectionView .contentOffset value restoration after scroll
โ†”๏ธ UICollectionView cell-size-based scroll pagination, see below for instructions
๐Ÿ“ Storyboard and Auto Layout compatibility
๐Ÿ’Ž Clean architecture
๐Ÿ”ง Unit Tests

Enable/disable scroll pagination

Set paginationEnabled variable true in GLTableCollectionViewController class, false to disable. Default value is true.

/// Set true to enable UICollectionViews scroll pagination
var paginationEnabled: Bool = true

Demo

How it works

Requirements

  • Xcode 8.0+
  • Swift 3.0+
  • iOS 8.0+

Note

GLTableCollectionView is written using Swift 3.0 so it would only support iOS 8.0+ due to Swift 3 language compatibility, if you use Swift 2.0 in your project or you need iOS 7.0+ compatibility GLTableCollectionView will work too, but you must convert UITableView and UICollectionView Data Source and Delegate methods signatures before building your code or Xcode won't compile.

gltablecollectionview's People

Contributors

giulio92 avatar

Watchers

James Cloos avatar Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.