I'd like to experiment a bit in a Swift Playground, and in my experiment I want to use parts of my app. Specifically I'd like to instantiate some views and view controllers.
In this example, my app is called NJSTest. I add a playground, and write "import NJSTest". But Xcode says "No such module 'NJSTest'".
How can I include my app as a module in a playground?
(note, I don't want to break out the app parts as a framework by itself that I then import in my app and playground because I would like my app to be compatible with iOS 7)
Cheers
Nik
Unfortunately, Playground comes with below limitations:
Personally, I would want to see 2 in action at least :)!
So, to answer your question, its not possible (at least at this point in time).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With