Skip to content

Glossary: Swift Basics

swift

Also written: swift file.swift, swift --version

The terminal command that compiles a Swift file and runs it straight away. `swift --version` shows which Swift is installed.

Where the book teaches it

Related terms

swiftcswift run