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
You need to make the function or class
public
.