iampossible / Cordova-DocPicker

iOS plugin for Cordova writting in Swift.
11 stars 18 forks source link

Slow to open on first run - UI API called on a background thread #13

Closed AndrWeisR closed 4 years ago

AndrWeisR commented 4 years ago

You get an error the first time you run the plugin, and the doc picker is very slow to open:

Main Thread Checker: UI API called on a background thread: -[UIDocumentPickerViewController initWithDocumentTypes:inMode:]

Xcode shows error: UIDocumentPickerViewController.delegate must be used from main thread only on DocumentPicker.swift line 48: picker.delegate = self

AmadeuReal commented 4 years ago

Thanks for opening this issue. Fixed on the last release 1.2.2