Share swift playground code between iPad and Mac

How can I share the code I write in the Swift Playgrounds app on iPad? I see that I can create modules and files on the iPad, but I don't see any way to share that with my Mac besides copying and pasting the code into an email. Is there a way to see this playground content in iCloud?