I have developed an interface using JUCE, and we have our own proprietary library written in Swift. How can I integrate Swift development into a JUCE project? I would appreciate some assistance with this.
The simplest way would probably be to use CMake, since CMake supports both C++ (and JUCE) as well as Swift.
There are some Apple-made examples to create mixed projects:
Once you compile and link the Swift code as a part of your CMake project, you can either expose a C API using @_cdecl, or use Objective C++ bindings, or use the more recent C++ interop from Swift (but that imposes a few limitations and not super production ready IMO).
1 Like
