Inside of CloudFileProvider the Method searchFiles add an observer with block.
This Block runs in main thread. in my case it hase to check over 35.000 files and blocks the UI for 4-10 seconds.
the end of the block jumps back to background queue.
I moved the row
self.dispatch_queue.async {
to the beginning of the block and everything works fine.
Inside of CloudFileProvider the Method searchFiles add an observer with block. This Block runs in main thread. in my case it hase to check over 35.000 files and blocks the UI for 4-10 seconds.
the end of the block jumps back to background queue.
I moved the row
self.dispatch_queue.async {
to the beginning of the block and everything works fine.