I have a Xamarin Forms project which allows the user to login, and then they are redirected. On Andoid, all works fine, but on iOS I am getting an error: System.InvalidOperationException: 'Shell CurrentItem should not be null'
My code in ,y LoginViewModel (after the user has successfully logged in) is:
Application.Current.MainPage = new AppShell(); //this causes the exception in iOS only
await Shell.Current.GoToAsync($"//dashboard"); //this line is not hit