Stepper(value: $year, in: 2018...2025){Text("Year: \(year)")}
Displays as Year: 2.200
thousand-point with the thousand-point.
How can this thousand-point be avoided?
Stepper(value: $year, in: 2018...2025){Text("Year: \(year)")}
Displays as Year: 2.200
thousand-point with the thousand-point.
How can this thousand-point be avoided?
Instead of String interpolation:
Text("Year: \(year)")
Use String initialiser:
Text("Year: \(String(year))")