I have this call in my loginViewController when Submit button is pressed:
let http = HTTPHelper() http.post(\"http://someUrl.com/Login/userEmail/\\(username.
I was having this issue when trying to change the contents of a text box from inside an Async Task.
The solution was using the DispatchQueue (Xcode 8.0 and Swift 3.0):
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { self.textBox.text = "Some Value" }