HStack {Text("Calculated number"); TextField("", value: $calculated, format: .number) }
HStack {Text("Calculate number"); TextField("", value: $calculator, format: .number) }
HStack {Text("Calculate way"); TextField("", value: $calculateway, format: .number)}
For the code above, Xcode will show error: Can't find $calculated, $calculator and $calculateway. How to solve this error?
Also I want to create a Label that shows word:'Result:'and a variable called calresult but I don't know how to make the Label, can anyone give me the code to create the Label I said? I hope the Label will show these text, (calresult)means the data in calresult: Result: (calresult)