-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for shared code between chapters #17
Comments
This is really tricky, since Playgrounds on macOS will only copy files and not reference them from outside the playground. It may just be a matter of having to duplicate the code across chapters. Not ideal, but might be good enough. Since I haven't had a need to references files across chapters yet, I can't prioritize/figure out the best solution for this issue. |
Maybe editing the playground workspace xml manually could be used? |
I have a playground book I want to try building over the next week or so that's going to rely on some shared code stuff, so I'll hopefully get a better sense of that stuff. |
Cool! I tried symlinks and macOS shortcuts without success. |
See the discussion on #34 The
That said, I have not found a way to use the same file in multiple |
It's as easy as copying Swift files into the
Sources
folder, we would need to document how playgrounds on the mac need to reference these and not copy them.The text was updated successfully, but these errors were encountered: