Skip to content

sofiakloukianova/SwiftRunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

SwiftRunner

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.

Features

  • 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

Screenshots

screenshot1

Architecture Overview

SwiftRunner is built using SwiftUI + AppKit:

  • EditorPaneView – NSTextView code editor
  • OutputPaneView – Code output with clickable diagnostics
  • ScriptExecutor – Runs Swift scripts in a background process
  • ErrorNavigationService – Maps compiler errors to editor positions
  • PaneTheme – Centralized styling and appearance settings

Build and Run Instructions

1. Clone the repository

git clone https://github.com/<your-username>/SwiftRunner.git
cd SwiftRunner

2. Open the Xcode project

Open the project file:

open SwiftRunner.xcodeproj

3. Build and run

Press: ⌘ + R

The project should now build and run without any additional configuration.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages