0

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

Sneha
  • 880
  • 9
  • 24
Juguang
  • 621
  • 2
  • 5
  • 15

1 Answers1

3

You need to make the function or class public.

J.Wang
  • 1,136
  • 6
  • 12