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
View More Packages from this Author

Dependencies

Last updated: Wed Dec 27 2023 21:51:36 GMT-1000 (Hawaii-Aleutian Standard Time)