16 lines
439 B
Swift
16 lines
439 B
Swift
import SwiftUI
|
|
|
|
/// Metrics change only when a new sample is published; no numeric transition or spring.
|
|
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")))
|
|
}
|
|
}
|