MINDSTORMS 51515 exporting code
I don't have an iOS device, but in the Android/ChromeOS version, there is a Share option when you click the ⋮ button next to the project name. You can use this to email the project, send it to Dropbox/OneDrive/Google Drive, etc. The exact options will depend on which other apps you have installed. The shared project (.lms file) can be opened by others on any OS with the same or newer version of the MINDSTORMS programming app.