Files
tether/ios/MacTetherApp/Sources/MacTetherApp.swift
Patrick Ecord c73108a126 Add macOS window UI (ContentView) alongside menu bar
WindowGroup with resizable window (560×520 default): connection toolbar,
feed list with source icons + text selection + copy button, composer with
Cmd+Return shortcut. Both window and menu bar share the same store.
Removed LSUIElement — app now shows in Dock.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 15:27:55 -05:00

21 lines
511 B
Swift

import SwiftUI
@main
struct MacTetherApp: App {
@State private var store = MacTetherStore()
var body: some Scene {
WindowGroup {
ContentView(store: store)
}
.windowResizability(.contentMinSize)
.defaultSize(width: 560, height: 520)
MenuBarExtra("tether", systemImage: store.connected ? "link.circle.fill" : "link.circle") {
MenuView(store: store)
.frame(width: 320)
}
.menuBarExtraStyle(.window)
}
}