How to enable my application as a module on Swift Playground?

I would experiment a little on Swift Playground, and in my experiment I want to use parts of my application. In particular, I would like to instantiate some of the views and view the controllers.

In this example, my application is called NJSTest. I add a playground and write "import NJSTest". But Xcode says: "There is no such module" NJSTest ".

How to enable my application as a module on the playground?

(note: I don’t want to tear out the parts of the application as a frame myself, so that I can then import into my application and the playing field, because I would like my application to be compatible with iOS 7)

Greetings

Nick

+5
source share
1 answer

Unfortunately, Playground has the following limitations:

  • The playground cannot be used for performance testing.
  • Does not support user interaction.
  • Does not support execution on the device.
  • Does not support user rights.

Personally, I would like to see 2 in action at least :)!

So, to answer your question, it is impossible (at least at the moment).

+1
source

Source: https://habr.com/ru/post/1233029/


All Articles