I have been searching for an hour with no success so hope one of you will have pity. I am using Xcode 9 and Swift 4.
textIt.text = name
Works perfectly and I have used it in my app but
name = textIt.text
brings up the error code:
Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'?
All I want to do is to put some text from a variable into a field so the user can change it then I put the text back into the variable.
What am I doing wrong?