Skip to content

Commit

Permalink
Center title in measurement recorded veiw
Browse files Browse the repository at this point in the history
  • Loading branch information
nriedman committed May 13, 2024
1 parent 3f7f107 commit 6689d4e
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions ENGAGEHF/Bluetooth/Views/MeasurementRecordedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,30 @@ struct MeasurementHeader: View {


var body: some View {
HStack {
Button(action: {
dismiss()
}) {
Text("DISMISS_BUTTON")
.foregroundStyle(Color.accentColor)
ZStack {
HStack {
Button(action: {
dismiss()
}) {
Text("DISMISS_BUTTON")
.foregroundStyle(Color.accentColor)
}
.buttonStyle(PlainButtonStyle())
.padding(.trailing, 10)
.disabled(viewState != .idle)
.accessibilityLabel("Dismiss")

Spacer()
}
.buttonStyle(PlainButtonStyle())
.disabled(viewState != .idle)
.accessibilityLabel("Dismiss")

Spacer()

Text("Measurement Recorded")
.font(.title2)

Spacer()
HStack {
Spacer()

Text("Measurement Recorded")
.font(.title2)

Spacer()
}
}
.padding()
}

Check warning on line 45 in ENGAGEHF/Bluetooth/Views/MeasurementRecordedView.swift

View check run for this annotation

Codecov / codecov/patch

ENGAGEHF/Bluetooth/Views/MeasurementRecordedView.swift#L18-L45

Added lines #L18 - L45 were not covered by tests
Expand Down

0 comments on commit 6689d4e

Please sign in to comment.