Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Progress Indicator #14

Open
Lakr233 opened this issue May 4, 2022 · 4 comments
Open

[Feature Request] Progress Indicator #14

Lakr233 opened this issue May 4, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@Lakr233
Copy link

Lakr233 commented May 4, 2022

Is it possible to make it a progress indicator?

Put a UIActivityIndicatorView at the icon and provide a call back like

SPIndicator.presentProgress(message: "Hello") { completion in
    // do some work
    Backend.shared.load()
    // when done
    completion.send()
}
@Lakr233 Lakr233 added the enhancement New feature or request label May 4, 2022
@ivanvorobei
Copy link
Owner

Great idea, will do it

@Lakr233
Copy link
Author

Lakr233 commented May 9, 2022

And maybe something like this:

SPIndicator.presentProgress(message: "Hello") { indicator in
    // do some work
    Backend.shared.load { progress in
        indicator.send(progress)
    }
    // when done
    indicator.complete()
}

@nandorojo
Copy link
Contributor

this would be awesome!

@baronha
Copy link

baronha commented Jun 27, 2023

It would be great if that was implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants