I would like to refresh root view when user logs out but I can’t find how to do it under the new Scene-less SwiftUi 2.
Next is @Swissmark posted solution I'm trying to implement in SwiftUI 2:
let contentView = AppRootView(showingView: ShowingView(showingView: appStartView))
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: contentView)
self.window = window
window.makeKeyAndVisible()
}