Collection of Swift snippets, investigations, experiments etc.
A single <Name>.swift file.
No external dependencies (system frameworks only).
Can be run using:
swift <Name>.swiftMay be grouped with companion scripts (e.g. run.sh for optimization).
A script might not be enough if a project needs (including but not limited to):
- Third-party dependencies
- Modularization/separation of targets
- Build, platform, and Swift settings
- Swift testing
- Resources
Exposes one or more of these products:
When merely storing a collection of files.
When the product has a main entry point. Can be run using:
swift run <executable>When the product is a runnable app with UI (a .swiftpm).
Opened in Xcode.
There should never be a need for an .xcodeproj file.