Performing I/O on the main thread can cause hangs. This is known to cause hangs for your users. On Xcode
Im updating an old app made with swift. It was before the Storyborad and before SwiftUI. The code is old I used to use .xib files and load them like this: func loadNewScreen() { DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) { let…