Mario Loncar
Nicolas
struct 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) { } }
context
*Self*.Context
A modern programming language that makes developers happier.