Most of example showcase calling python framework from swift/objective-c code. but I want to do the reverse, I want to call exposed functions of swift from python. Is there any way to do that?
What is best way to expose custom, application-specific, non-system-framework (i.e. not in one of the framework wrappers provided with PyObjC) classes written in Objective-C/swift to python across the PyObjC bridge.
I want to develop a "hybrid" application in which some portions of the app are in Objective-C/swift and others are in python, with the two side integrating via the PyObjC bridge.
Most of the documentation I've been able to find seems to focus on situations where the goal is to have all the app-specific code be in python, and to have the python call out to AppKit classes, etc via the bridge and the pre-packaged system framework wrappers.