Been encountering this error a lot in my OS X using swift:
\"This application is modifying the autolayout engine from a background thread, which can
I had the same issue when trying to update error message in UILabel in the same ViewController (it takes a little while to update data when trying to do that with normal coding). I used DispatchQueue in Swift 3 Xcode 8 and it works.
DispatchQueue