Skip to content

Commit

Permalink
Checkmark icon from SF Symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewTurk247 committed Apr 28, 2024
1 parent f21cfc9 commit 3985dd8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
24 changes: 19 additions & 5 deletions PAWS/ECGRecordings/ECGRecording.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,30 @@ import SwiftUI
struct ECGRecording: View {
let electrocardiogram: HKElectrocardiogram
@State var symptoms: HKElectrocardiogram.Symptoms = [:]
@Environment(ECGModule.self) var ecgModule


var body: some View {
PAWSCard {
VStack(alignment: .leading) {
Text("ECG Recording")
.font(.title)
Text(electrocardiogram.endDate.formatted())
.font(.subheadline)
.foregroundStyle(.secondary)
VStack(alignment: .leading, spacing: 0) {
Text("ECG Recording")
.font(.title)
HStack {
Text(electrocardiogram.endDate.formatted())
.font(.subheadline)
.foregroundStyle(.secondary)
if ecgModule.isUploaded(electrocardiogram) {
Image(systemName: "checkmark.circle.fill")
.foregroundStyle(.green)
.accessibilityLabel("Checkmark: ECG has been successfully uploaded")
} else {
ProgressView()
.controlSize(.small)
.padding(.horizontal, 1)
}
}
}

Check warning on line 39 in PAWS/ECGRecordings/ECGRecording.swift

View check run for this annotation

Codecov / codecov/patch

PAWS/ECGRecordings/ECGRecording.swift#L22-L39

Added lines #L22 - L39 were not covered by tests
Divider()
if symptoms.isEmpty {
Text("Recorded no symptoms")
Expand Down
3 changes: 3 additions & 0 deletions PAWS/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@
}
}
}
},
"Checkmark: ECG has been successfully uploaded" : {

},
"CLOSE" : {
"localizations" : {
Expand Down

0 comments on commit 3985dd8

Please sign in to comment.