Add SwiftUI iOS app shell

This commit is contained in:
Mikhail Kilin
2026-05-20 15:43:07 +03:00
parent 0878ba78df
commit d68d68aeda
10 changed files with 1058 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import SwiftUI
import TeleTuiIOSCore
@main
struct TeleTuiIOSApp: App {
var body: some Scene {
WindowGroup {
RootView(store: makeStore())
}
}
private func makeStore() -> SessionStore {
let paths = AppStoragePaths()
let account = Account(
id: "fake",
displayName: "Fake",
databasePath: paths.databasePath(for: "fake")
)
return SessionStore(account: account, bridge: FakeSessionBridge(auth: .ready))
}
}