SwiftUI menu bar app for comparing local time with a small set of world clocks and pinning exact hours for planning.
Caution
This app was "vibe coded" with Codex/GPT-5.4. Do not use it as is, do not trust this code!
- This version is intentionally minimal: one Swift source file plus this README.
- The menu bar icon is a clock symbol only.
- The world clock list is hardcoded in source for now. Edit
SwiftTime.swiftto change the tracked locations. - The app uses a single planning flow: use
Set Houron local time or any world clock row to pin the planner to an exact hour in that timezone. - The per-location hour picker is hour-granularity by design. It sets minutes and seconds to
00. - Germany uses
Europe/Berlinrather than a fixedCEToffset so daylight saving transitions are handled correctly.
git clone <your-repo-url>
cd SwiftTime
swiftc -parse-as-library -framework SwiftUI -framework AppKit -o SwiftTime SwiftTime.swift./SwiftTimeThe app lives in the macOS menu bar and updates continuously while open.
Because this project is a bare executable rather than a bundled .app, the simplest startup option is a per-user launchd agent managed by the included script.
- Build the binary:
swiftc -parse-as-library -framework SwiftUI -framework AppKit -o SwiftTime SwiftTime.swift- Add it to startup:
./startup.sh add- If you rebuild the binary later, reload the login item:
./startup.sh update- To remove it from startup:
./startup.sh removeThe script writes ~/Library/LaunchAgents/com.kastner.swifttime.plist pointing at the SwiftTime binary in this checkout. If you move the checkout, run ./startup.sh update.