Skip to content

Show ToolTip on progress indicator #81

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

Merged
merged 2 commits into from
Jan 23, 2021
Merged

Show ToolTip on progress indicator #81

merged 2 commits into from
Jan 23, 2021

Conversation

MattKiazyk
Copy link
Contributor

I didn't like not knowing what percent my download was at, so a quick win is to show it on the tooltip

image

Copy link
Contributor

@interstateone interstateone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good addition, just the one comment about where to add this in code. Thanks Matt!

@@ -23,6 +23,7 @@ struct ProgressIndicator: NSViewRepresentable {
nsView.controlSize = controlSize
nsView.isIndeterminate = isIndeterminate
nsView.style = style
nsView.toolTip = "Dowloading: \(Int(doubleValue * 100.0))% complete"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This view is only used in the one spot right now, but I'd like to keep it as generic as possible. Could this tooltip be added with a .help() modifier at the call site in InstallationStepView instead?

@MattKiazyk
Copy link
Contributor Author

Moved.. sorry, i swear I tried there and it had errors about not being able to find .help which I took as it not being compatible with a UIKit progress

@MattKiazyk MattKiazyk merged commit f970649 into main Jan 23, 2021
@MattKiazyk MattKiazyk deleted the matt/progressToolTip branch January 23, 2021 23:29
@interstateone interstateone added the enhancement New feature or request label Jan 26, 2021
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

Successfully merging this pull request may close these issues.

2 participants