We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b1cc4a commit 4649ba0Copy full SHA for 4649ba0
1 file changed
Xcodes/Backend/XcodeCommands.swift
@@ -39,16 +39,12 @@ struct InstallButton: View {
39
let xcode: Xcode?
40
41
var body: some View {
42
- Button(action: install) {
43
- if isLoading {
44
- ProgressView()
45
- .colorInvert()
46
- .controlSize(.small)
47
- } else {
48
- Text("Install")
49
- .textCase(.uppercase)
50
- .help("InstallDescription")
51
- }
+ ProgressButton(isInProgress: isLoading) {
+ install()
+ } label: {
+ Text("Install")
+ .textCase(.uppercase)
+ .help("InstallDescription")
52
}.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: false))
53
}
54
0 commit comments