> 2.5.2 Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code which introduces or changes features or functionality of the app, including other apps. Educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code provided that such code is not used for other purposes. Such apps must make the source code provided by the app completely viewable and editable by the user.
An app is allowed to use the standard method to read and write to use the standard document storage API where any installed storage providers can be accessed - iCloud, Google Drive, DropBox, the local device, etc
I thought you can do a SwiftUI project on an iPad using playgrouds, then send the project to your macbook if you want to release from there. I never tried it though.
> 2.5.2 Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code which introduces or changes features or functionality of the app, including other apps. Educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code provided that such code is not used for other purposes. Such apps must make the source code provided by the app completely viewable and editable by the user.
https://developer.apple.com/app-store/review/guidelines/
So except for education you can't code on an iPad.
That said, you could access a website like stackblitz or codepen or codesandbox. No idea how well those run on iPad.