You can see this is how they handled it
https://bitbucket.org/TwoLivesLeft/core/wiki/CopyingCode
Swift Playground doesn't seem to have that limit which arguably makes Swift Playground a whole lot better and arguably anti-competitive
> 3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's built-in WebKit framework, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.
It's not like this sort of behaviour is new to Apple (or any of their competitors) .
From the Swift Playground website:
> Send your code to a friend’s iPad using Mail, Messages, or AirDrop
No other apps are allowed to do this because of the iOS Terms of Service restrictions