With the latest version of Xcode, you can create a Swift Playground App when creating a new project.
The thing is, you still should test it on the iPad version of Swift Playgrounds, to guarantee that everything works out fine.
To do that, you can take advantage of ✨iCloud✨.
Even though you can't create an App project in the Mac version of Swift Playgrounds, you can drag and drop the project you created with Xcode in Swift Playgrounds and it will automatically be uploaded to iCloud, showing up on the iPad for you to test it.
On the iPad version, you also have access to features like folder creation, which so far I still could not find as a feature on Xcode.