Swift 6.2 String Interpolation Default Value
In Swift 6.2, String interpolation has a new default value parameter that accepts a string regardless of the type of the optional value:
1
Text("The count is \(count, default: "not set")")
In Swift 6.2, String interpolation has a new default value parameter that accepts a string regardless of the type of the optional value:
1
Text("The count is \(count, default: "not set")")