perf(ui): 移除监控动效并精简原生图表绘制
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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")))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user