mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 07:34:32 +00:00
Update Numeric Text transition
This commit is contained in:
parent
e58d995b05
commit
8942e1f8a5
3 changed files with 61 additions and 10 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue