I am trying to get numeric input via the TextField. See related code below. The display does not show the TextField with the grayed out 'item1:'. It shows the initialized value of 0 instead. deleting the 0 does show the TextField prompt. Trying to find out if there is a way show the prompt.
@State var item1 = 0
TextField(" item1:", value: $item1, formatter: numberFormatter )
private let numberFormatter: NumberFormatter = {
let formatter = NumberFormatter()
formatter.numberStyle = .decimal
// formatter.timeStyle = .medium
return formatter
}()