Files
workoutsplus/TODO/WorkoutPlusWatch/Views/MetricsView.swift
2026-03-01 10:56:42 +01:00

38 lines
778 B
Swift

import SwiftUI
struct MetricsView: View {
var body: some View {
VStack(alignment: .leading) {
ElapsedTimeView()
Text(
Measurement(
value: 47,
unit: UnitEnergy.kilocalories)
.formatted(
.measurement(
width: .abbreviated,
usage: .workout,
numberFormatStyle: .number)))
Text(153.formatted(.number.precision(.fractionLength(0))) + " bpm")
Text(
Measurement(
value: 515,
unit: UnitLength.meters)
.formatted(
.measurement(
width: .abbreviated,
usage: .road)))
}
.font(.system(.title, design: .rounded)
.monospacedDigit()
.lowercaseSmallCaps())
.frame(maxWidth: .infinity, alignment: .leading)
.ignoresSafeArea(edges: .bottom)
.scenePadding()
}
}
#Preview {
MetricsView()
}