I have an analog wavetable synth in Juce. All UI is controlled in Juce. Pretty much the full working synth part is working in Juce. But I have a couple of other apps on the app store that are purely iOS and Objective-C.
I want to use part of the code that is already written in the iOS version and import it to the Juce version. For example:
- Touch and Hold MIDI Learn
- Panic Button
- Latency Buffer Settings
- Background Audio
- RAM Display
- CPU Meter
How do I combine the two so that I don't have to re-write the code in Juce?
I've written an example project for mixing UI and passing data between JUCE and Obj-C / Swift:
https://github.com/adamski/juce-native-navigation
There's also some helpful stuff on this blog post about mixing C++ and Obj-C: http://philjordan.eu/article/mixing-objective-c-c++-and-objective-c++
If you take a look at the iosMainWindow files in the project that should show you how to get started. Please note my methods may not be the best way of doing it but what worked for me!