pnicholls / ProgressView

ProgressView is a means for displaying a progress indicator for a collection of Progressable items.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProgressView

Version Swift Version Carthage compatible

ProgressView is a means for displaying a progress indicator for a collection of Progressable items.

This is heavily inspired by Instagram Stories.

Usage

extension ExampleViewController: ProgressViewDataSource {
        
    // MARK: - ProgressViewDataSource
    
    func items(for progressView: ProgressView) -> [Progressable] {
        return items
    }
}

public protocol Progressable {
    var progress: ProgressViewObservable<Double> { set get }
}

Example

alt tag

alt tag

About

ProgressView is a means for displaying a progress indicator for a collection of Progressable items.


Languages

Language:Swift 96.2%Language:Objective-C 3.8%