Native macOS app for posting to Mastodon, WordPress (self-hosted), and Micro.blog. Features: global hotkey (Ctrl+Option+Cmd+T), multiple accounts with selection, image attachments (up to 4, drag-and-drop), floating panel UI, Keychain storage.
20 lines
556 B
Swift
20 lines
556 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct QStatusApp: App {
|
|
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
|
|
|
var body: some Scene {
|
|
MenuBarExtra("qStatus", systemImage: "bubble.left.and.text.bubble.right") {
|
|
MenuBarView(
|
|
accountStore: appDelegate.accountStore,
|
|
onOpenPanel: { appDelegate.showPanel() },
|
|
onOpenSettings: { appDelegate.showSettings() }
|
|
)
|
|
}
|
|
|
|
Settings {
|
|
SettingsView(accountStore: appDelegate.accountStore)
|
|
}
|
|
}
|
|
}
|