Skip to content

Activity Indicator on Install Pressed#437

Merged
MattKiazyk merged 4 commits intoXcodesOrg:mainfrom
chickdan:install_activity_indicator
Dec 13, 2023
Merged

Activity Indicator on Install Pressed#437
MattKiazyk merged 4 commits intoXcodesOrg:mainfrom
chickdan:install_activity_indicator

Conversation

@chickdan
Copy link
Contributor

I noticed that there is often a long delay between clicking Install and the button switching to the linear progress view which sometimes makes it seem unresponsive. So I added a circular style progress view to the install button to indicate activity and reduce the chance of repeat clicks.

Before:
Screenshot 2023-10-17 at 6 21 21 PM

After:
Screenshot 2023-10-17 at 6 21 26 PM

Copy link
Contributor

@MattKiazyk MattKiazyk left a comment

Choose a reason for hiding this comment

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

Thanks @chickdan !

Can we switch it to use ProgressButton that we already have?


var body: some View {
Button(action: install) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we reuse ProgressButton that we have already (2FA/SMS windows)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!

}
.textCase(.uppercase)
.help("InstallDescription")
}.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: false))
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry one last change @chickdan - can we move this buttonStyle outside of ProgressButton. This would be set on the XcodeListViewRow but not set for the infoPane buttons.

That will keep all the buttons the same style on the infoPane. Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Updated.

@MattKiazyk MattKiazyk added the enhancement New feature or request label Dec 13, 2023
@MattKiazyk MattKiazyk merged commit 0884f85 into XcodesOrg:main Dec 13, 2023
@NSExceptional
Copy link

GitHub pro tip @chickdan: if you put something like fixes #9999 in the PR title, it'll automatically close the issue when the PR is merged :)

@chickdan chickdan deleted the install_activity_indicator branch December 13, 2023 06:06
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.

3 participants