Mario Loncar
06/24/2025, 2:39 PMNicolas
06/24/2025, 4:05 PMstruct HostingWindowFinder: UIViewRepresentable {
var callback: (UIWindow?) -> ()
func makeUIView(context: Context) -> UIView {
let view = UIView()
DispatchQueue.main.async { [weak view] in
self.callback(view?.window)
}
return view
}
func updateUIView(_ uiView: UIView, context: Context) {
}
}
this run on my xcode with no multiplatformLib
Maybe you should change context
by *Self*.Context
Mario Loncar
06/25/2025, 7:47 AM