forked from shadowfacts/Tusker
parent
098c4254d4
commit
7b218bfd75
|
@ -143,14 +143,16 @@ 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()
|
||||||
ProgressView()
|
if isReporting {
|
||||||
.progressViewStyle(.circular)
|
ProgressView()
|
||||||
} else {
|
.progressViewStyle(.circular)
|
||||||
Text("Send Report")
|
}
|
||||||
}
|
}
|
||||||
|
.accessibilityLabel(label)
|
||||||
}
|
}
|
||||||
.disabled(isReporting)
|
.disabled(isReporting)
|
||||||
.appGroupedListRowBackground()
|
.appGroupedListRowBackground()
|
||||||
|
|
Loading…
Reference in New Issue