Update Numeric Text transition

This commit is contained in:
Hariharan Mudaliar 2025-12-23 01:52:05 +05:30
commit 8942e1f8a5
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
3 changed files with 61 additions and 10 deletions

View file

@ -74,11 +74,12 @@ struct CircularHUDView: View {
if showValue {
VStack {
Spacer()
Text("\(Int(value * 100))")
.font(.system(size: size * 0.15, weight: .bold, design: .rounded))
.foregroundStyle(.white.opacity(0.65))
.contentTransition(.numericText())
.padding(.bottom, size * 0.03)
HUDNumericLabel(
value: value,
font: .system(size: size * 0.15, weight: .bold, design: .rounded),
color: .white.opacity(0.65)
)
.padding(.bottom, size * 0.03)
}
}