ECTimelineView

1.2.0

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

What's New

2020-10-14T21:05:36Z

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?)

Description

  • Swift Tools 5.3.0

Dependencies

Last updated: Tue Mar 30 2021 13:58:47 GMT-0500 (GMT-05:00)