mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 22:23:44 +00:00
18 lines
328 B
Swift
18 lines
328 B
Swift
import SwiftUI
|
|
|
|
struct StatisticValueView: View {
|
|
private let value: String
|
|
|
|
init(_ value: String) {
|
|
self.value = value
|
|
}
|
|
|
|
var body: some View {
|
|
Text(value)
|
|
.contentTransition(.numericText())
|
|
.minimumScaleFactor(0.1)
|
|
.font(.title3.bold().monospacedDigit())
|
|
.foregroundStyle(.white)
|
|
}
|
|
}
|