FlutterWrapView.swift 552 Bytes
//
//  FlutterWrapView.swift
//  hippo
//
//  Created by 权海 on 2026/6/9.
//

import SwiftUI
import Flutter

struct FlutterRootView: UIViewControllerRepresentable {
    let engine: FlutterEngine

    func makeUIViewController(context: Context) -> FlutterViewController {
        let vc = FlutterViewController(
            engine: engine,
            nibName: nil,
            bundle: nil
        )
        return vc
    }

    func updateUIViewController(
        _ uiViewController: FlutterViewController,
        context: Context
    ) {
    }
}