New Feature: Native content sharing support for iOS/Android

I’ve done some work on this in my fork of JUCE.
The first commit fixes a crash due to deallocated memory access. To reproduce: open the sharer, tap ‘Save to Files’, tap ‘Cancel’, close the sharer, boom.
The second makes it workable within AUv3 by allowing to set the parent component (a-la FileChooser) before making a call to shareFiles(), shareText(), etc. and using it to present the UIActivityViewController.
Still need to fix the sharer width and implement a way to get proper popoverController.sourceRect through for arrow placement - not as easy…

2 Likes