ProgressView is a means for displaying a progress indicator for a collection of Progressable
items.
This is heavily inspired by Instagram Stories.
extension ExampleViewController: ProgressViewDataSource {
// MARK: - ProgressViewDataSource
func items(for progressView: ProgressView) -> [Progressable] {
return items
}
}
public protocol Progressable {
var progress: ProgressViewObservable<Double> { set get }
}