Swiftpack.co - Package - EvanCooper9/ECTimelineView

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

Github

link
Stars: 9

Dependencies

Used By

Total: 0

Releases

- 2020-10-14 21:05:36

- 2020-10-14 16:52:55

- 2020-10-08 00:27:56

- 2020-10-07 23:05:15

- 2020-10-07 12:37:17