ProgressObserver 2.0.0

ProgressObserver 2.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2016
SPMSupports SPM

Maintained by Ayush Newatia.



MIT Licence

Description

ProgressObserver is a simple subclass of NSProgress that provides a delegate API to observe changes in the completedUnitCount and fractionCompleted key paths.

Usage

This library can be used in largely the same way as NSProgress. There are 2 delegate methods that are called when fractionCompleted and completedUnitCount are updated. Please read the docs for further information.

If you would like to add observers to more key paths, please open an issue or pull request.

Requirements

ProgressObserver requires at least iOS 9.

Documentation

Docs are available on CocoaDocs

Release Notes

2.0.0

Migrated code to Swift 3.0.

1.1.0

Migrated code to Swift 2.3. There will be no new features or patches in for Swift 2.3 after this version.

1.0.0

Initial Release

To-Do

I will be attempting to implement feature to make it easier to calculate estimated time remaining (if feasible) over the coming weeks. Please open an issue if you any ideas for how this class can be made more convenient.

Author

Ayush Newatia, [email protected]

License

ProgressObserver is available under the MIT license. See the LICENSE.md file for more info.