Xcode Playground: new pages cannot refer to source files

233 Views Asked by At

I was very excited to view the video on WWDC2015 Session 405 Authoring Rich Playgrounds , in that they seem to promise to reuse a piece of code in Sources, among different Pages.

However, it seems not happen automatically. I mean, a new page cannot aceess a func which is defined in a Source swift file.

What should I do to access func defined in a source file?

Thanks

1

There are 1 best solutions below

0
On

You need to make the function or class public.