I know UIView are not thread safe so i cant add a view on a background thread, to work around this is it ok to create a UIView on a background thread then add it on the main
I use Xcode Version 9.0 beta 3 (9M174d), receiving a warning.
[UView init] must be called from main thread only
So I think you should create UI in main thread better
Show the picture below :