/ProgressView

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

Primary LanguageSwift

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