swiftUI桥接UIKit
struct TestView: UIViewRepresentable {@Binding var text: String // 该文本在swiftUI中可以修改let text: String // 不可修改func makeUIView(context: Context) -> UIView {let view = UIView()// 例子asd.frame = CGRect(x: 0, y: 0, width: 300, height: 300)view.addSubview(asd)return view}func updateUIView(_ uiView: UIView, context: Context) {}
}