TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Sep 2016 |
SPMSupports SPM | ✗ |
Maintained by Ayush Newatia.
ProgressObserver is a simple subclass of NSProgress
that provides a delegate API to observe changes in the completedUnitCount
and fractionCompleted
key paths.
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.
ProgressObserver requires at least iOS 9.
Docs are available on CocoaDocs
Migrated code to Swift 3.0.
Migrated code to Swift 2.3. There will be no new features or patches in for Swift 2.3 after this version.
Initial Release
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.
Ayush Newatia, [email protected]
ProgressObserver is available under the MIT license. See the LICENSE.md file for more info.