/AssesmentCollection

Collection view which scrolls both horizontal and vertical #TabularView

Primary LanguageSwiftMIT LicenseMIT

AssesmentCollection

Collection view which scrolls both horizontal and vertical

alt text

alt text

Usage

Add the following files into your project:

  • TabularCollectionView.swift
  • TabularCollectionCell.swift
  • TabularCollectionCell.xib
  • TabularLayout.swift
  • String+Utility.swift
  • Color.swift
  • Font.swift

Add the below reference to your view controller

@IBOutlet weak var collectionView: AssesmentCollectionView!

Inherit "TabularCollectionDataSource" & "TabularCollectionDelegate" to customize the collection view.

To set the Title Attributes use this method

func tabularView(_ tabularView: TabularCollectionView, titleAttributesForCellAt indexPath: IndexPath) -> CellTitleAttributes

Create your Data and give How many number of Columns needed

func numberOfColumns(in tabularView: TabularCollectionView) -> Int

Create your Data and give How many number of Rows needed

func numberOfRows(in tabularView: TabularCollectionView) -> Int

Mention how many number of static rows you want to keep

func numberOfStaticRows(in tabularView: TabularCollectionView) -> Int

Mention how many number of static Column you want to keep

func numberOfStaticColumn(in tabularView: TabularCollectionView) -> Int

Swift version

  • Swift 4.0

Refeference

Thanks to Brightec Team

License

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