eleven / ocho Public

Clone
git clone https://amadan.net/eleven/ocho

Plain git — no account needed to clone.

Download

Download this file

1import LChatCore
2import SwiftUI
3import WebKit
4
5// đŸ¤– The iOS face of the platform-shared command host (LChatCore
6// CommandHost — the generalized command engine, docs/native-apps.md Layer 2):
7// just the UIViewRepresentable that frames the host's webview in the composer
8// stack. The host itself (page seeding, runCommand forwarding, panel/notice
9// posts, command rows, needKey/needAppThread answers) lives in LChatCore,
10// shared with the Mac.
11struct CommandPanelWebView: UIViewRepresentable {
12 let host: CommandHost
13 func makeUIView(context: Context) -> WKWebView { host.web }
14 func updateUIView(_ web: WKWebView, context: Context) {}
15}
16