Display SwiftUI View from AppDelegate?

How do I change the root view of my SwiftUI app? For example, normally in the SceneDelegate I'd display my ContentView() as the root view to the hosting controller. But depending on conditions I might want to display something else first, like a LoginView, and then when that view goes away show the normal ContentView.