This commit is contained in:
zeus
2025-01-28 12:28:03 +08:00
parent 738c373a77
commit ec96756800
2534 changed files with 486292 additions and 0 deletions
@@ -0,0 +1,27 @@
//
// ChatViewControllerWrapper.swift
// SFI
//
// Created by Mac on 2024/10/24.
//
import SwiftUI
import UIKit
import Crisp
// Step 2: Create a SwiftUI wrapper for ChatViewController
struct ChatViewControllerWrapper: UIViewControllerRepresentable {
// Initialize any properties needed to pass to ChatViewController
typealias UIViewControllerType = ChatViewController
func makeUIViewController(context: Context) -> ChatViewController {
// Return the ChatViewController
let chatViewController = ChatViewController()
return chatViewController
}
func updateUIViewController(_ uiViewController: ChatViewController, context: Context) {
// Update the view controller when needed
}
}