I want to go to Content View from Home View as below but it doesn't load.
Below are the code
Find_my_FriendsApp/@main
@StateObject var authentication = Authentication()
var body: some Scene {
WindowGroup() {
if authentication.isValidated {
ContentView()
.environmentObject(authentication)
} else {
HomeView()
.environmentObject(authentication)
}
}
}