diff --git a/pages/common/swift.md b/pages/common/swift.md new file mode 100644 index 0000000000..6e7a4aa02e --- /dev/null +++ b/pages/common/swift.md @@ -0,0 +1,27 @@ +# swift + +> Create, run and build Swift projects. + +- Invoke the interactive interpreter (REPL): + +`swift` + +- Execute a program: + +`swift {{file.swift}}` + +- Start a new project with the package manager: + +`swift package init` + +- Generate an Xcode project file: + +`swift package generate-xcodeproj` + +- Update dependencies: + +`swift package update` + +- Compile project for release: + +`swift build -c release`