Are there any examples of python bindings that call code written in swift on MacOS?
I found ways to call python within swift, but not the other way around
Specifically, my python application needs to make a call to DARegisterDiskDisappearedCallback() in apple's Disk Arbitration framework since the libusb implementation of registering hotplug callbacks is broken in MacOS. Unfortunately, this framework is only accessible in swift and objective c.
Is there a way to have a python module make calls to swift code?