import SwiftUI extension EnvironmentValues { @Entry var panelMotionActive: Bool = true } struct MetricText: View { let value: String var body: some View { Text(verbatim: value).monospacedDigit() } } struct PanelCardBackground: ViewModifier { let radius: CGFloat func body(content: Content) -> some View { content.background(RoundedRectangle(cornerRadius: radius).fill(Color("PanelCard"))) } } struct InlineMetric: View { let title: LocalizedStringKey let value: String init(_ title: LocalizedStringKey, _ value: String) { self.title = title; self.value = value } var body: some View { HStack(spacing: 4) { Text(title).foregroundStyle(.secondary) MetricText(value: value).fontWeight(.medium) } .font(.system(size: 10)).lineLimit(1) } }