AudioUnits of version three don’t support components added to the desktop. So to use ContentSharer on iOS AudioUnits we need a way to pass a parent component (akin to the FileChooser interface). I’ve created a pull requests that adds an optional Component *parentComponent argument to each sharing method. The iOS native implementation will use the passed component to add it self to the parent component’s peer.
I’m aware of @amethystdeceiver’s work on that topic but from an API point of view prefer passing the component directly at the call over setting a parent component on a singleton class.
Awesome, thanks!
Is there any chance the API could also take a component or area from which to show the iOS popover? I think it’s the last bit missing to make the sharer look & feel 100% native.
virtual void runAsync (ContentSharer::Callback callback)
{
jassertfalse;
NullCheckedInvocation::invoke (callback, false, "Content sharing not available on this platform!");
}
I call it from a PopUpMenu so with the recent changes I move the ScopedMessageBox to a member of my main component class (the one that calls those)
Do you definitely have the JUCE_CONTENT_SHARING=1 preprocessor definition enabled?
iOS content sharing seems to work in the DemoRunner running in the Simulator. Perhaps you could look for differences between your project and the DemoRunner.