MenuBarExtra SwiftUI app sharing TetherKit wire layer with iOS. Auto-sends clipboard changes via NSPasteboard polling (500ms), auto-writes received messages to NSPasteboard. XcodeGen project.yml. Both apps build clean; server tested end-to-end with curl. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
358 B
Swift
14 lines
358 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct MacTetherApp: App {
|
|
@State private var store = MacTetherStore()
|
|
var body: some Scene {
|
|
MenuBarExtra("tether", systemImage: store.connected ? "paperclip.circle.fill" : "paperclip.circle") {
|
|
MenuView(store: store)
|
|
.frame(width: 320)
|
|
}
|
|
.menuBarExtraStyle(.window)
|
|
}
|
|
}
|