parent
098c4254d4
commit
7b218bfd75
|
@ -143,14 +143,16 @@ struct ReportView: View {
|
|||
.appGroupedListRowBackground()
|
||||
|
||||
Button(action: self.sendReport) {
|
||||
if isReporting {
|
||||
Text("Sending Report")
|
||||
let label = Text(isReporting ? "Sending Report" : "Send Report")
|
||||
HStack {
|
||||
label
|
||||
Spacer()
|
||||
ProgressView()
|
||||
.progressViewStyle(.circular)
|
||||
} else {
|
||||
Text("Send Report")
|
||||
if isReporting {
|
||||
ProgressView()
|
||||
.progressViewStyle(.circular)
|
||||
}
|
||||
}
|
||||
.accessibilityLabel(label)
|
||||
}
|
||||
.disabled(isReporting)
|
||||
.appGroupedListRowBackground()
|
||||
|
|
Loading…
Reference in New Issue