A ridiculously simple macOS text editor: one full-window editor that auto-saves locally.
This is a native SwiftUI/AppKit version of the “giant textarea” idea from https://local-edit.netlify.app/.
- Single full-window editor (no document model, no tabs, no sidebar)
- Auto-saves your text locally (using
@AppStorage) - Cmd+F Find using macOS’s built-in Find UI (via an
NSTextViewwrapper) - Titlebar blends with the editor background (no visible window title)
- macOS (this project targets macOS; see
Draft.xcodeprojbuild settings) - Xcode (open the project and run)
- Open
Draft.xcodeprojin Xcode - Select the
Draftscheme - Run (⌘R)
- Where text is stored: the content is saved to your app’s user defaults under the key
draft.text. - Window title: the title text is intentionally blanked/hidden. (macOS will still show the app name in the system menu bar—this is normal.)
- Traffic lights: the red/yellow/green window buttons use the standard macOS titlebar layout (no hacks to reposition them).
- Main editor:
Draft/ContentView.swift - Find-enabled editor:
Draft/FindableTextView.swift(wrapsNSTextViewso Cmd+F works) - Window/titlebar styling:
Draft/WindowChromeConfigurator.swift
MIT — see LICENSE.
