Swift

Languageby Tori @gettoriApache-2.0Bundled
Runs your project’s code

Swift loads code from the project it opens, such as its dependencies or its own configuration. Tori asks before starting it in each project and remembers your answer for that project.

Verified against
sourcekit-lsp from Swift 6.4 (Xcode 27.0)Measured Oct 9, 2026
Platforms
macOS, Linux, Windows
Install
Shows how to install itIt ships with Xcode and with the Swift toolchain.
Needs Tori
26.1009.0 or newer
Schema
Version 1
Id
swift
Source file
lsp/swift.toml ↗gettori/packs on GitHub

Add it in Tori

  1. Open Settings with the gear in the title bar.
  2. Go to LSP.
  3. Swift is already there: it ships inside Tori. When the catalog has a newer version, Add a language lists it with Update.

Adding writes one file and runs nothing. Tori then shows how to install the tool itself.

Use it without the catalog

Download the file and drop it in the folder below. Tori loads it the next time it starts.

Download file swift.toml
~/.config/tori/packs/lsp/

The file

swift.tomlRead only
1# Swift via `sourcekit-lsp`, which its own toolchain installs, so Tori2# offers a hint rather than an install. See LSP-SERVERS.md.34schema_version = 15id = "swift"6label = "Swift"7description = "Swift, through SourceKit-LSP"8license = "Apache-2.0"9contributor = { name = "Tori", github = "gettori" }10verified_against = "sourcekit-lsp from Swift 6.4 (Xcode 27.0)"11verified_on = "2026-10-09"12root_markers = ["Package.swift", ".git"]13request_timeout_ms = 600001415# Builds `Package.swift`, which is Swift code.16runs_project_code = true1718[languages]19swift = "swift"2021[launch]22kind = "path"23program = "sourcekit-lsp"24args = []2526[install]27kind = "hint"28text = "It ships with Xcode and with the Swift toolchain."