Progress

extension Progress
  • Sets a closure that the Progress calls whenever its fractionCompleted changes. You can use this instead of setting up KVO.

    Declaration

    Swift

    @nonobjc
    public func setProgressHandler(_ closure: ((_ progress: Progress) -> Void)?)

    Parameters

    closure

    the closure to execute on progress change