0

his application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.

LF00
  • 27,015
  • 29
  • 156
  • 295

1 Answers1

0

Try this:

It needs to be placed inside a different thread that allows the UI to update as soon as execution of thread function complete

DispatchQueue.main.async 
{
   // Update UI
}
Pragnesh Vitthani
  • 2,532
  • 20
  • 28