perf(efficiency): 落实首批采样减负与发行包瘦身

This commit is contained in:
2026-11-03 23:19:52 +08:00
parent 935701fca6
commit def3b1e130
40 changed files with 483 additions and 291 deletions
+1 -4
View File
@@ -1,15 +1,12 @@
import SwiftUI
/// The same system numeric roll/blur transition as the original metric rows.
/// Static numbers avoid per-sample glyph rasterization and transition caches.
struct AnimatedMetricText: View {
let value: String
@Environment(\.accessibilityReduceMotion) private var reduceMotion
var body: some View {
Text(verbatim: value)
.monospacedDigit()
.contentTransition(.numericText())
.animation(reduceMotion ? nil : .spring(duration: 0.35, bounce: 0), value: value)
}
}