All Projects → KyoheiG3 → Gridview

KyoheiG3 / Gridview

Licence: mit
Reusable GridView with excellent performance and customization that can be time table, spreadsheet, paging and more.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Gridview

Spreadsheetview
Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.
Stars: ✭ 3,324 (+331.13%)
Mutual labels:  spreadsheet, grid-layout
Epplus
EPPlus 5-Excel spreadsheets for .NET
Stars: ✭ 693 (-10.12%)
Mutual labels:  spreadsheet
Vue Grid Layout
A draggable and resizable grid layout, for Vue.js.
Stars: ✭ 5,170 (+570.56%)
Mutual labels:  grid-layout
Swiftspreadsheet
Spreadsheet CollectionViewLayout in Swift. Fully customizable. 🔶
Stars: ✭ 590 (-23.48%)
Mutual labels:  spreadsheet
React Datasheet
Excel-like data grid (table) component for React
Stars: ✭ 4,866 (+531.13%)
Mutual labels:  spreadsheet
Dataproofer
A proofreader for your data
Stars: ✭ 628 (-18.55%)
Mutual labels:  spreadsheet
Nghandsontable
Official AngularJS directive for Handsontable
Stars: ✭ 438 (-43.19%)
Mutual labels:  spreadsheet
Unity Quicksheet
Unity-QuickSheet enables you to use spreadsheet file data within Unity editor.
Stars: ✭ 742 (-3.76%)
Mutual labels:  spreadsheet
Ce
Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.
Stars: ✭ 5,832 (+656.42%)
Mutual labels:  spreadsheet
Readxl
Read excel files (.xls and .xlsx) into R 🖇
Stars: ✭ 585 (-24.12%)
Mutual labels:  spreadsheet
Formula Parser
Javascript Library parsing Excel Formulas and more
Stars: ✭ 544 (-29.44%)
Mutual labels:  spreadsheet
Docjure
Read and write Office documents from Clojure
Stars: ✭ 510 (-33.85%)
Mutual labels:  spreadsheet
Avalanche
Superclean, powerful, responsive, Sass-based, BEM-syntax CSS grid system
Stars: ✭ 627 (-18.68%)
Mutual labels:  grid-layout
React Native Ultimate Listview
A high performance FlatList providing customised pull-to-refresh | auto-pagination & infinite-scrolling | gridview layout | swipeable-row.
Stars: ✭ 497 (-35.54%)
Mutual labels:  gridview
Sheetjs
📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
Stars: ✭ 28,479 (+3593.77%)
Mutual labels:  spreadsheet
Bootstrapping Calculator
Do you have enough savings to fund your business?
Stars: ✭ 465 (-39.69%)
Mutual labels:  spreadsheet
Reogrid
Fast and powerful .NET spreadsheet component, support data format, freeze, outline, formula calculation, chart, script execution and etc. Compatible with Excel 2007 (.xlsx) format and working on .NET 3.5 (or client profile), WPF and Android platform.
Stars: ✭ 532 (-31%)
Mutual labels:  spreadsheet
Gspread
Google Sheets Python API
Stars: ✭ 5,676 (+636.19%)
Mutual labels:  spreadsheet
Vue Handsontable Official
Vue Data Grid with Spreadsheet Look & Feel. Official Vue wrapper for Handsontable.
Stars: ✭ 751 (-2.59%)
Mutual labels:  spreadsheet
Dragact
a dragger layout system with React style .
Stars: ✭ 710 (-7.91%)
Mutual labels:  grid-layout

GridView

Build Status Carthage compatible Version License Platform

GridView can tile the view while reusing it. It has an API like UIKit that works fast. Even when device rotates it smoothly relayout.

timetable timetable

Appetize's Demo

You Can

  • Scroll like paging
  • Scroll infinitely
  • Scale the view
  • Call API like the UITableView

Requirements

  • Swift 5.0
  • iOS 9.0 or later

How to Install

CocoaPods

Add the following to your Podfile:

pod "G3GridView"

⚠️ WARNING : If you want to install from CocoaPods, must add G3GridView to Podfile because there is a GridView different from this GridView.

Carthage

Add the following to your Cartfile:

github "KyoheiG3/GridView"

Over View

GridView can scroll in any direction while reusing Cell like UITableView. Also it is based UIScrollView and paging and scaling are possible. If necessary, it is possible to repeat the left and right scroll infinitely.

GridView is one UIScrollView, but the range which Cell is viewed depends on Superview. Cell reuse is also done within the range which Superview is viewed, so its size is very important.

On the other hand, scaling and paging depend to position and size of GridView. 'bounds' is important for paging, 'frame' is important in scaling. The same is true for offset of content.

The following image is a visual explanation of the view hierarchy.

Hierarchy

You can use it like the UITableView APIs. However, there is concept of Column. The following functions are delegate APIs of 'GridView'.

func gridView(_ gridView: GridView, numberOfRowsInColumn column: Int) -> Int
func gridView(_ gridView: GridView, cellForRowAt indexPath: IndexPath) -> GridViewCell

@objc optional func numberOfColumns(in gridView: GridView) -> Int

You can see that must return the count.

Examples

This project is including two examples that is timetable and paging. Those can change on Interface Builder for following:

Example

Try the two examples.

timetable paging
timetable paging

Usage

Variables

Infinite Loop

A horizontal loop is possible.

open var isInfinitable: Bool
  • Default is true.
  • Set false if you don't need to loop of view.
loop
gridView.isInfinitable = true

Scaling

Content is done relayout rather than scaling like 'UIScrollView'.

open var minimumScale: Scale
open var maximumScale: Scale
  • Default for x and y are 1.
  • Set the vertical and horizontal scales.
public var currentScale: Scale { get }
  • Get current vertical and horizontal scales.
scaling
gridView.minimumScale = Scale(x: 0.5, y: 0.5)
gridView.maximumScale = Scale(x: 1.5, y: 1.5)

Fill for Cell

It is possible to decide the placement of Cell at relayout.

open var layoutWithoutFillForCell: Bool
  • Default is false.
  • Set true if need to improved view layout performance.
false true
false true
gridView.layoutWithoutFillForCell = true

Content Offset

If isInfinitable is true, contentOffset depends on the content size including size to loop. It is possible to take content offset that actually visible.

open var actualContentOffset: CGPoint { get }

Delegate

Set the delegate destination. This delegate property is UIScrollViewDelegate but, actually set the GridViewDelegate.

weak open var dataSource: GridViewDataSource?
open var delegate: UIScrollViewDelegate?

Functions

State

Get the view state.

public func visibleCells<T>() -> [T]
public func cellForRow(at indexPath: IndexPath) -> GridViewCell?
public func rectForRow(at indexPath: IndexPath) -> CGRect
public func indexPathsForSelectedRows() -> [IndexPath]
public func indexPathForRow(at position: CGPoint) -> IndexPath

Operation

Operate the view.

public func contentScale(_ scale: CGFloat)
public func reloadData()
public func invalidateContentSize()
public func invalidateLayout(horizontally: Bool = default)
public func deselectRow(at indexPath: IndexPath)
override open func setContentOffset(_ contentOffset: CGPoint, animated: Bool)
public func scrollToRow(at indexPath: IndexPath, at scrollPosition: GridViewScrollPosition = default, animated: Bool = default)

LICENSE

Under the MIT license. See LICENSE file for details.

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].