OpenLocalKeys
A SwiftUI macOS Menu Bar App.
Building and Running
Using Swift Package Manager (SPM)
# Build the app
swift build
# Run the app
swift runUsing Xcode (Recommended for development)
-
Open this directory in Xcode:
open Package.swift
-
Select the "OpenLocalKeys" scheme
-
Press Cmd+R to build and run
Project Structure
OpenLocalKeys/
├── src/
│ ├── OpenLocalKeysApp.swift # Main app entry point and menu bar setup
│ └── ContentView.swift # SwiftUI view for the popover content
├── Package.swift # Swift Package Manager configuration
└── README.md
Customization
- Status Bar Icon: Change the
systemSymbolNameinOpenLocalKeysApp.swift(currently"key.fill") - Popover Size: Modify
contentSizeinOpenLocalKeysApp.swift(currently 300x400) - UI Content: Edit
ContentView.swiftto customize the popover interface - Dock Icon: Comment out
NSApp.setActivationPolicy(.accessory)to show a dock icon
Requirements
- macOS 13.0+
- Xcode 15.0+ or Swift 5.9+