I’d choose to use Xcode on Mac, but you _can_ write apps in Swift Playgrounds on iPad, and even upload them to App Store Connect for publication in the App Store.
Isn't that just a thin client though? the actual "machine" is the server and you're just remoting into it? I don't think I'd consider that "developing" on an ipad since without the server it's totally dead in the water. I'd call that developing on a server