Add a native iOS client for relay-based file sharing

The SwiftUI app bundles the Go swarm engine through gomobile, so an iPhone is a real peer using the existing PAKE handshake, chunk verification, and relay fallback. XcodeGen builds the project and devicectl installs it on the paired phone.
This commit is contained in:
2026-10-26 22:24:47 +08:00
parent 29fa4a4c44
commit 9a37e93cfc
23 changed files with 2458 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import SwiftUI
@main
struct ShareApp: App {
@StateObject private var model: AppModel
init() {
let model = AppModel()
_model = StateObject(wrappedValue: model)
Task { @MainActor in
SelfTest.runIfRequested(model: model)
}
}
var body: some Scene {
WindowGroup {
RootView()
.environmentObject(model)
.preferredColorScheme(.dark)
.tint(Theme.mint)
}
}
}