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
  • 24,667
  • 25
  • 136
  • 263

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,432
  • 17
  • 27