mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-12 20:07:31 +00:00
27 lines
753 B
Swift
27 lines
753 B
Swift
import HapiClient
|
|
import HapiProtocol
|
|
import SwiftUI
|
|
|
|
struct RootView: View {
|
|
var body: some View {
|
|
NavigationStack {
|
|
ContentUnavailableView {
|
|
Label("HAPI", systemImage: "antenna.radiowaves.left.and.right")
|
|
} description: {
|
|
Text("Native companion scaffold (M0). Pairing and sessions arrive in M1.")
|
|
}
|
|
.navigationTitle("HAPI")
|
|
.safeAreaInset(edge: .bottom) {
|
|
Text("HapiKit \(HapiClientVersion.current) · protocol v\(ProtocolVersion.supported)")
|
|
.font(.footnote)
|
|
.foregroundStyle(.secondary)
|
|
.padding(.bottom, 8)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
RootView()
|
|
}
|