An open API service indexing awesome lists of open source software.

https://github.com/jsbakker/reswifter

ReSwifter is a both a Snippet Manager app and an XCode Editor Extension available in the macOS App Store. It is lightweight, but feature-rich. In addition to typical features found in a Snippet Manager, ReSwifter also offers several local-AI-assisted tasks on your code snippets.
https://github.com/jsbakker/reswifter

foundation-models macos snippets snippets-manager swift swiftui xcode-extension

Last synced: 5 days ago
JSON representation

ReSwifter is a both a Snippet Manager app and an XCode Editor Extension available in the macOS App Store. It is lightweight, but feature-rich. In addition to typical features found in a Snippet Manager, ReSwifter also offers several local-AI-assisted tasks on your code snippets.

Awesome Lists containing this project

README

          

![Swift5](https://img.shields.io/badge/swift-6-blue.svg)
![macOS](https://img.shields.io/badge/os-macOS-green.svg)
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)

# ReSwifter

ReSwifter is a both a Snippet Manager app and an XCode Editor Extension. It is lightweight, but feature-rich. In addition to typical features found in a Snippet Manager, ReSwifter also offers several local-AI-assisted tasks on your code snippets.

**Note:** This project has no build automation workflows because the GitHub Actions macOS Runner machines' installed SDKs are too old to compile against the FoundationModels framework. See issue: https://github.com/jsbakker/ReSwifter/issues/7

## Features and Behaviour
- New snippets from clipboard are briefly summarized and named automatically
- One-click copy to clipboard, or use keyboard shortcuts
- Live code editing of snippets with syntax highlighting
- Syntax highlighting supports 58 programming languages, which can be overridden
- Adaptive syntax highlighting for Dark and Light modes set by the system
- Folder management, favourites, and search filter assist in finding your snippets
- Folders named after programming languages automatically applies the language's highlighting to new snippets in that folder
- AI-assisted tasks: Explain, Document, Review, Cleanup, Refactor, Convert to Swift*
- AI features use Apple's built-in FoundationModels, which works completely offline (privacy)
- Rich, structured text responses from AI-assisted features (not editable)
- Copy to clipboard button will copy only code blocks from AI responses; use manual selection to copy non-code

\**Note: Accuracy, consistency or reliability of AI-assisted tasks are to be considered with discretion. The language, length, complexity and nature of a snippet, and the AI task can all be combined factors in the quality of the result. Always double-check AI output before accepting it.*

![Snippet Actions](https://github.com/user-attachments/assets/1ee32875-99a1-4b5d-ab62-b1c643b7344b)
![Snippet Explained](https://github.com/user-attachments/assets/fb829944-91fd-419e-98fa-c816afb318c1)

### XCode Extension
- Selected text in XCode can be sent directly to ReSwifter via the Editor menu, and any snippet can be sent back to replace it
- Invoking ReSwifter from XCode with no selection will send the entire contents of the currently opened file, which can be replaced by an augmented version

![From Xcode](https://github.com/user-attachments/assets/3390d6d5-71a3-431f-88d2-86a5e6529ae6)

## Requirements
Apple M1 or later hardware runing macOS Tahoe 26 or later is required. For the AI-assisted capabilities to work, you will need Apple Intelligence enabled (and downloaded) in your System Settings. You may have to restart ReSwifter after the model is downloaded.
![Apple Intelligence](Docs/Images/Apple-Intelligence.png)

## Download and Install
The easiest way would be to visit [the ReSwifter page in the macOS App Store](https://apps.apple.com/us/app/reswifter-for-xcode/id6760387439).

## Help and How To
[Visit the ReSwifter Help in the wiki, here](https://github.com/jsbakker/ReSwifter/wiki/ReSwifter-Help).

## Author
ReSwifter (C) 2026 Jeffrey Bakker

### Credits
- Live snippet editing with syntax highlighting uses [HighlightedEditorView](https://github.com/jsbakker/HighlightedEditorView), by Jeffrey Bakker.
- Markdown and code blocks for AI Responses are rendered with [Textual](https://github.com/gonzalezreal/textual), by [Guille Gonzalez](https://github.com/gonzalezreal).