This will be extremely difficult in my opinion.
There is no thread safety for the callbacks and so you wouk need to try and just work without callbacks which could be impossible.
Its probably possible with declares. But I wouldnt recommend it. Learn Swift and do this the right way in Xcode and you wont have to deal with the constant moving target of Xcode/Xojo compatibility as much. Code signing and entitlements are significantly easier in Xcode as well