Hello everybody,
im new here and I have a problem:
i want to convert my String from "@State var number = “” " to an Integer typed in textField to use it in my function, and then display it in Text (for example: “The number is (IntFromString)”.
Could anyone help me?
Then in your Text that you are using to display the result you might do the following using String interpolation:
Text(“The number is: (IntFromString)”)