Download this file
| 1 | import LChatCore |
| 2 | import SwiftUI |
| 3 | import 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. |
| 11 | struct CommandPanelWebView: UIViewRepresentable { |
| 12 | let host: CommandHost |
| 13 | func makeUIView(context: Context) -> WKWebView { host.web } |
| 14 | func updateUIView(_ web: WKWebView, context: Context) {} |
| 15 | } |
| 16 | |