Files
Kymo/kymo/UI/Components/AnimatedMetricText.swift
T

20 lines
463 B
Swift

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")))
}
}