A demo on how to call swift code from python and call back python code from swift.
- Put both files into the same directory
- run
swiftc -emit-library -o ./libCallbackTest callbackTest.swift
to build a shared library from swift code - run
python native_callback_test.py
to execute the python script