i saw the way of switch from a View with UIKit to SwiftUI in this video https://developer.apple.com/videos/play/wwdc2019/231
but when running the App on my iPhone crashes, but in the simulator has no error.
My Mac, xcode and iOS are with the beta 2
On My StoryBoard have a View Controller with a button that goes to a Hosting Controller
@IBSegueAction func showDetails(_ coder: NSCoder) -> UIViewController? {
let rootView = SwiftUIView()
return UIHostingController(coder: coder, rootView: rootView)
}
and my SwiftUIView is the basic, just the hello world.
i get the error in the AppDelegate
pointing to:
class AppDelegate: UIResponder, UIApplicationDelegate {
with error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x1026c8180)
am i doing something wrong?