Adonit/Adonit-iOS-SDK

v2Beta1 BUG: The target selector is called from a background thread when setting up a shortcut on pen buttons

Closed this issue · 1 comments

This seems to be a regression compared to the master branch.
Now the target selector is called from a background thread and therefore if there is any UI work that needs to happen we must make sure to performOnMainThread.

I believe I would perform the target selector directly on the main thread to avoid any confusion for third party developers that uses your SDK. I basically spent 30minutes before realising that in fact i was not anymore on the Main Thread :)

Fixed with release V2.0.0.342 GM