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