import SwiftUI /// Static numbers avoid per-sample glyph rasterization and transition caches. struct AnimatedMetricText: 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"))) } }