All Projects → rafaelsrocha → ExcelCollectionViewLayout

rafaelsrocha / ExcelCollectionViewLayout

Licence: MIT license
An Excel-like UICollectionView's layout.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ExcelCollectionViewLayout

CSStickyFlowLayoutHeaders
UICollectionView replacement for your amazing headers
Stars: ✭ 16 (-50%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Collectionviewslantedlayout
A CollectionView Layout displaying a slanted cells
Stars: ✭ 2,029 (+6240.63%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Flowlayout
UICollectionView WaterFlowLayout. 瀑布流.
Stars: ✭ 94 (+193.75%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Pagingkit
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries.
Stars: ✭ 1,030 (+3118.75%)
Mutual labels:  uicollectionview, uicollectionviewlayout
CPCollectionViewWheelLayoutSwift
New url:https://github.com/ParsifalC/CPCollectionViewKit Objective-C Version:https://github.com/ParsifalC/CPCollectionViewWheelLayout
Stars: ✭ 16 (-50%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Drcollectionviewtablelayout Ios
UICollectionView 2d-table / grid / spreadsheet layout
Stars: ✭ 74 (+131.25%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Lxreorderablecollectionviewflowlayout
Extends `UICollectionViewFlowLayout` to support reordering of cells. Similar to long press and pan on books in iBook.
Stars: ✭ 1,831 (+5621.88%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Alignedcollectionviewflowlayout
A collection view layout that gives you control over the horizontal and vertical alignment of the cells.
Stars: ✭ 751 (+2246.88%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Squaremosaiclayout
An extandable mosaic UICollectionViewLayout with a focus on extremely flexible customizations 🔶
Stars: ✭ 243 (+659.38%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Admozaiccollectionviewlayout
ADMozaicCollectionViewLayout is yet another UICollectionViewLayout subclass that implements "brick", "mozaic" or Pinterest style layout.
Stars: ✭ 226 (+606.25%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Centeredcollectionview
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
Stars: ✭ 965 (+2915.63%)
Mutual labels:  uicollectionview, uicollectionviewlayout
CPCollectionViewWheelLayout
An interesting wheel layout of collection view.Swift version:https://github.com/ParsifalC/CPCollectionViewKit
Stars: ✭ 16 (-50%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Collectionviewpaginglayout
a simple but highly customizable paging layout for UICollectionView.
Stars: ✭ 947 (+2859.38%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Bubblecollectionviewlayout
Create bubble layout of UICollectionView using custom layout
Stars: ✭ 79 (+146.88%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Blueprints
🌀 Blueprints - A framework that is meant to make your life easier when working with collection view flow layouts.
Stars: ✭ 874 (+2631.25%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Cpcollectionviewkit
Interesting UICollectionView layouts and transitions
Stars: ✭ 140 (+337.5%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Carlenscollectionviewlayout
An easy-to-use Collection View Layout for card-like animation.
Stars: ✭ 478 (+1393.75%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Swiftspreadsheet
Spreadsheet CollectionViewLayout in Swift. Fully customizable. 🔶
Stars: ✭ 590 (+1743.75%)
Mutual labels:  uicollectionview, uicollectionviewlayout
Chatlayout
ChatLayout is an alternative solution to MessageKit. It uses custom UICollectionViewLayout to provide you full control over the presentation as well as all the tools available in UICollectionView. It supports dynamic cells and supplementary view sizes.
Stars: ✭ 184 (+475%)
Mutual labels:  uicollectionview, uicollectionviewlayout
JQCollectionViewAlignLayout
A custom layout object based on flow layout. Added supports for horizontal, vertical alignment and RTL direction of collection view items.(available for both UICollectionView and NSCollectionView)
Stars: ✭ 69 (+115.63%)
Mutual labels:  uicollectionview, uicollectionviewlayout

ExcelCollectionViewLayout

Version License Platform Language

Based on Brightec’s solution this pod will allow you to have an UIColletionView working like an Excel (PC) or Numbers’ (OS X) sheet. Plus, and not less important, you will have the total control about your UICollectionView's design and how it should look like!

This is the expected behavior in the implemented UICollectionView:

UICollectionView's expected behavior

Requirements

  • iOS 8.0+
  • Xcode 8.0+
  • Swift 4.0

Installation

CocoaPods

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

pod 'ExcelCollectionViewLayout'

Manually

Just drag and drop ExcelCollectionViewLayout.swift inside your project.

Usage

Set ExcelCollectionViewLayout as your UICollectionView's layout:

  • Go to your UICollectionView's inspector
  • Select Custom in the Layout selector
  • Type ExcelCollectionViewLayout in the Class selector (it should autocomplete and/or appear in the dropdown list).

UICollectionView's inspector

Set ExcelCollectionViewLayout's delegate, responsible for calculating each column's items' size:

override func viewDidLoad() {
    super.viewDidLoad()

    if let collectionLayout = collectionView.collectionViewLayout as? ExcelCollectionViewLayout {
        collectionLayout.delegate = self
    }
}

After setting ExcelCollectionViewLayoutDelegate, you must implement the delegate's method which will allow you to calculate column's items' size or just set it arbitrarily:

func collectionViewLayout(_ collectionViewLayout: ExcelCollectionViewLayout, sizeForItemAtColumn columnIndex: Int) -> CGSize {
    return CGSize(width: 100, height: 50)
}

PS.: This pod's example has a good example of calculated items' size.

And we are all set up! As said before, you still have the total control about your UICollectionView's design and how it should be like, all it takes care of is the UICollectionView's cells arrangement!

Keep in mind: when setting UICollectionViewDataSource's methods the sections are the rows and rows are the columns.

Section-row relationship.

Example

To run the example project simply type pod try ExcelCollectionViewLayout on Terminal. Or clone the repo, and run pod install from the Example directory first.

Author

Created, updated and maintained by Rafael Rocha.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].