SwiftUI - iOS 13 UIViewRepresentable of WKWebView gets Thread 1: EXC_BREAKPOINT crash
问题 I'm trying to port WKWebView over to SwiftUI. Here's my code: import SwiftUI import WebKit struct ContentView: View { var body: some View { WebViewWrapper() } } /** WKWebView ported over to SwiftUI with `UIViewRepresentable`. */ final class WebViewWrapper: UIViewRepresentable { /// `UIViewRepresentable` required function #1. func makeUIView(context: Context) -> WKWebView { print("make") let webView = WKWebView() /// EXC_BREAKPOINT error here return webView } /// `UIViewRepresentable` required