Playgrounds code -> Xcode

Is there a way to continue with the same codes from Playgrounds to Xcode, especially those visual block of elements e.g. world.place ? Any library that I can import to enable the use of those blocks from Playgrounds would be welcome.

Playgrounds code -> Xcode
 
 
Q