SwiftRunner is a macOS app for writing and running Swift scripts with live output. It features a split editor/output view, syntax highlighting, and clickable compiler errors for quick navigation.
- Write and run Swift scripts instantly
- Live stdout / stderr streaming
- Clickable compiler errors (jump to line & column)
- Syntax highlighting
- Adjustable font size
- Light / Dark appearance
- Stop running scripts at any time
SwiftRunner is built using SwiftUI + AppKit:
EditorPaneView– NSTextView code editorOutputPaneView– Code output with clickable diagnosticsScriptExecutor– Runs Swift scripts in a background processErrorNavigationService– Maps compiler errors to editor positionsPaneTheme– Centralized styling and appearance settings
git clone https://github.com/<your-username>/SwiftRunner.git
cd SwiftRunnerOpen the project file:
open SwiftRunner.xcodeprojPress: ⌘ + R
The project should now build and run without any additional configuration.