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>
21 lines
511 B
Swift
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)
|
|
}
|
|
}
|