Currently, there is no easy way to pop to the root view in a NavigationView. After logging out, it is recommended that you close the app and reopen. If you log out and don't close the app, it will still work, but the UI will work unpredictably in some places. https://github.com/dmr121/davidChat/blob/master/assets/davidChat.gif
Also, there is no easy way to automatically scroll to the bottom of the list when a new message is received since SwiftUI is still in beta. That's why there is a "bottom" button in the navigation bar which serves as a not very elegant alternative.