Can we use third-party Swift Packages in our App Playground?

Hi everyone,I am currently working on building an App Playground using Xcode 14 on macOS 13. As the guidelines mentioned on the official website:

  • Your creation should not rely on a network connection and any resources used in your app playground should be included locally in the ZIP file. Submissions will be judged offline.

However, I am unsure if I can use third-party Swift Packages in my App Playground. My app itself does not require a network connection to run. But if I added any Swift Package, I think Xcode needs to resolve the dependencies from GitHub before building it, which might require a network connection. I don't know if that would violate the "offline" rule.

Many thanks for your reply!

Hey! I'm also also participating in the Swift Student Challenge and would like to use a third-party service. Whilst initially I added it as a package (using Swift Playgrounds), I've then looked into files and seen that the only reference that package has is a dependency link:

dependencies: [
        .package(url: "https://github.com/simibac/ConfettiSwiftUI", "1.0.1"..<"2.0.0")
    ],

which seems that it indeed needs a network connection to resolve the package. What I ended up doing was including the source file from the GitHub repository (MIT Licensed) with credits and links.

Best of luck on your app!

Can we use third-party Swift Packages in our App Playground?
 
 
Q