Thanks to visit codestin.com
Credit goes to github.com

Skip to content

An horizontal or vertical infinitely scrolling UICollectionView implementation. Loads data synchrounously and asynchronously.

Notifications You must be signed in to change notification settings

EvanCooper9/ECTimelineView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECTimelineView

An horizontal or vertical infinitely scrolling UICollectionView implementation. Loads data synchrounously and asynchronously.

Installation

Swift Package Manager

.package(url: "https://github.com/EvanCooper9/ECTimelineView", from: "1.0.0")

Dependencies

Usage

Note: See inline documentation for more details

Data Source

Implement ECTimelineViewDataSource, and set the timelineDataSource property.

// MARK: ECTimelineViewDataSource protocol

// Asks for cell data that corresponds to the specified index
func timelineView<T, U>(_ timelineView: ECTimelineView<T, U>, dataFor index: Int, asyncClosure: @escaping (_ data: T?) -> Void) -> T?
    
// Configures the cell with the designated data
func configure<T, U: UICollectionViewCell>(_ cell: U, withData data: T?)

About

An horizontal or vertical infinitely scrolling UICollectionView implementation. Loads data synchrounously and asynchronously.

Topics

Resources

Stars

Watchers

Forks

Languages